You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
aku_new_community/lib/provider/sign_up_provider.dart

33 lines
521 B

import 'package:flutter/material.dart';
class SignUpProvider extends ChangeNotifier {
4 years ago
String? _nickName;
3 years ago
4 years ago
String? get nickName => _nickName;
4 years ago
String? _tel;
3 years ago
4 years ago
String? get tel => _tel;
Map<String, dynamic> get toMap => {
'nickName': _nickName,
'tel': _tel,
};
setNickName(String name) {
_nickName = name;
notifyListeners();
}
setTel(String tel) {
_tel = tel;
notifyListeners();
}
clearAll() {
_nickName = null;
_tel = null;
notifyListeners();
}
}