15 lines
325 B
Dart
15 lines
325 B
Dart
import 'package:flutter_riverpod/legacy.dart';
|
|
|
|
final userProvider = StateNotifierProvider<UserNotifier, UserState>((ref) => UserNotifier());
|
|
|
|
class UserNotifier extends StateNotifier<UserState> {
|
|
UserNotifier() : super(UserState());
|
|
}
|
|
|
|
/// 用户数据
|
|
class UserState {
|
|
String token;
|
|
|
|
UserState({this.token = ""});
|
|
}
|