Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import 'package:scoped_model/scoped_model.dart';
- class User extends Model{
- String _id;
- String _name;
- String _aboutMe;
- String _gender;
- String _preference;
- String _age;
- String get id => _id;
- String get name => _name;
- String get aboutMe => _aboutMe;
- String get gender => _gender;
- String get preference => _preference;
- String get age => _age;
- void changeId(String id){
- this._id = id;
- notifyListeners();
- }
- void changeName(String name){
- this._name = name;
- notifyListeners();
- }
- void changeAboutMe(String aboutMe){
- this._aboutMe = aboutMe;
- notifyListeners();
- }
- void changeGender(String gender){
- this._gender = gender;
- notifyListeners();
- }
- void changePreference(String preference){
- this._preference = preference;
- notifyListeners();
- }
- void changeAge(String age){
- this._age = age;
- notifyListeners();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement