Line data Source code
1 : part of grid_row_dropdown; 2 : 3 : /// Data Item to use in Dropwdown Menu for [CrossReferenceFormWidget] to sync between a [GridRow] and [CrossReferenceDataEntity] 4 : class GridRowDropdownDataItem { 5 : /// Creates a new GridRowDropdownDataItem 6 1 : GridRowDropdownDataItem({ 7 : this.entityUri, 8 : this.displayValue, 9 : }); 10 : 11 : /// [EntityUri] representing the [GridRow] 12 : final EntityUri? entityUri; 13 : 14 : /// Display Value. Normally this should be a String representation of the first item of the [GridRow] 15 : final String? displayValue; 16 : 17 1 : @override 18 : String toString() { 19 3 : return '_DropdownDataItem(entityUri: $entityUri, displayValue: $displayValue)'; 20 : } 21 : 22 1 : @override 23 : bool operator ==(Object other) { 24 1 : return other is GridRowDropdownDataItem && 25 3 : other.entityUri == entityUri && 26 3 : other.displayValue == displayValue; 27 : } 28 : 29 1 : @override 30 2 : int get hashCode => toString().hashCode; 31 : }