Created
October 10, 2023 16:58
-
-
Save Prn-Ice/73fdf94b0de07f59d58a1cef90fb1687 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import 'package:equatable/equatable.dart'; | |
void main() { | |
var a = GraphQLClass()..id = 'myId'..count=0; | |
var b = a; | |
b.count = 10; | |
print('a: $a'); | |
print('b: $b'); | |
} | |
class GraphQLClass with EquatableMixin { | |
GraphQLClass(); | |
String? id; | |
int? count; | |
@override | |
List<Object?> get props => [id, count]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment