SHARE
TWEET

Untitled

a guest Mar 24th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import 'package:scoped_model/scoped_model.dart';
  2.  
  3. class User extends Model{
  4.   String _id;
  5.   String _name;
  6.   String _aboutMe;
  7.   String _gender;
  8.   String _preference;
  9.   String _age;
  10.  
  11.  
  12.   String get id => _id;
  13.   String get name => _name;
  14.   String get aboutMe => _aboutMe;
  15.   String get gender => _gender;
  16.   String get preference => _preference;
  17.   String get age => _age;
  18.  
  19.  
  20.   void changeId(String id){
  21.     this._id = id;
  22.     notifyListeners();
  23.   }
  24.  
  25.   void changeName(String name){
  26.     this._name = name;
  27.     notifyListeners();
  28.   }
  29.  
  30.   void changeAboutMe(String aboutMe){
  31.     this._aboutMe = aboutMe;
  32.     notifyListeners();
  33.   }
  34.  
  35.   void changeGender(String gender){
  36.     this._gender = gender;
  37.     notifyListeners();
  38.   }
  39.  
  40.   void changePreference(String preference){
  41.     this._preference = preference;
  42.     notifyListeners();
  43.   }
  44.  
  45.   void changeAge(String age){
  46.     this._age = age;
  47.     notifyListeners();
  48.   }
  49. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top