Skip to content

Instantly share code, notes, and snippets.

@Prn-Ice
Created October 10, 2023 16:58
Show Gist options
  • Save Prn-Ice/73fdf94b0de07f59d58a1cef90fb1687 to your computer and use it in GitHub Desktop.
Save Prn-Ice/73fdf94b0de07f59d58a1cef90fb1687 to your computer and use it in GitHub Desktop.
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