Line data Source code
1 : part of apptive_grid_model; 2 : 3 : /// Model representing a Field in a Grid 4 : class GridField { 5 : /// Creates a GridField 6 7 : GridField(this.id, this.name, this.type); 7 : 8 : /// id of the field 9 : final String id; 10 : 11 : /// name of the field 12 : final String name; 13 : 14 : /// type of the field 15 : final DataType type; 16 : 17 4 : @override 18 : String toString() { 19 16 : return 'GridField(id: $id, name: $name, type: $type}'; 20 : } 21 : 22 4 : @override 23 : bool operator ==(Object other) { 24 4 : return other is GridField && 25 12 : id == other.id && 26 12 : name == other.name && 27 12 : type == other.type; 28 : } 29 : 30 1 : @override 31 2 : int get hashCode => toString().hashCode; 32 : }