Skip to content

Instantly share code, notes, and snippets.

@yarn-rp
Last active July 29, 2023 22:35
Show Gist options
  • Save yarn-rp/2384f3dfdee8fd0309b66e54bac583ab to your computer and use it in GitHub Desktop.
Save yarn-rp/2384f3dfdee8fd0309b66e54bac583ab to your computer and use it in GitHub Desktop.
class ConstantClass{
const ConstantClass({
required this.arg1,
required this.arg2,
required this.arg3,
});
final int arg1;
final int arg2;
final int arg3;
}
// Canonical rep: $ConstantClass#arg1=1#arg2=2#arg3=3
const a = ConstantClass(arg1: 1, arg2: 2, arg3: 3);
// Canonical rep: $ConstantClass#arg1=1#arg2=2#arg3=3
const b = ConstantClass(arg1: 1, arg2: 2, arg3: 3);
// Canonical rep: $ConstantClass#arg1=1#arg2=1#arg3=1
const c = ConstantClass(arg1: 1, arg2: 1, arg3: 1);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment