-
-
Save amrnt/48802c3de2654511017905d800fd027f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// GENERATED CODE - DO NOT MODIFY BY HAND | |
part of 'user.dart'; | |
// ************************************************************************** | |
// JsonSerializableGenerator | |
// ************************************************************************** | |
User _$UserFromJson(Map<String, dynamic> json) { | |
return User(json['id'] as String) | |
..firstName = json['firstName'] as String | |
..lastName = json['lastName'] as String; | |
} | |
Map<String, dynamic> _$UserToJson(User instance) => <String, dynamic>{ | |
'id': instance.id, | |
'firstName': instance.firstName, | |
'lastName': instance.lastName | |
}; | |
// ************************************************************************** | |
// StoreGenerator | |
// ************************************************************************** | |
mixin _$User on UserBase, Store { | |
Computed<String> _$fullNameComputed; | |
@override | |
String get fullName => | |
(_$fullNameComputed ??= Computed<String>(() => super.fullName)).value; | |
final _$firstNameAtom = Atom(name: 'UserBase.firstName'); | |
@override | |
String get firstName { | |
_$firstNameAtom.reportObserved(); | |
return super.firstName; | |
} | |
@override | |
set firstName(String value) { | |
super.firstName = value; | |
_$firstNameAtom.reportChanged(); | |
} | |
final _$lastNameAtom = Atom(name: 'UserBase.lastName'); | |
@override | |
String get lastName { | |
_$lastNameAtom.reportObserved(); | |
return super.lastName; | |
} | |
@override | |
set lastName(String value) { | |
super.lastName = value; | |
_$lastNameAtom.reportChanged(); | |
} | |
final _$UserBaseActionController = ActionController(name: 'UserBase'); | |
@override | |
void updateNames({String firstName, String lastName}) { | |
final _$prevDerivation = _$UserBaseActionController.startAction(); | |
try { | |
return super.updateNames(firstName: firstName, lastName: lastName); | |
} finally { | |
_$UserBaseActionController.endAction(_$prevDerivation); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment