Skip to content

Instantly share code, notes, and snippets.

@r100-stack
Created March 10, 2021 22:04

Revisions

  1. r100-stack created this gist Mar 10, 2021.
    25 changes: 25 additions & 0 deletions main.dart
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    class A {
    int? i1;
    int? i2;

    A({this.i1, this.i2});
    }

    class B {
    int? i1;
    int? i2;

    B({this.i1, this.i2});

    toString() {
    return 'i1: $i1, i2: $i2';
    }
    }


    void main() {
    A a = A(i1: 10, i2: 20);
    B b = B(i1: 10, i2: 20);
    print(a);
    print(b);
    }