selectedId property
Object?
selectedId
Implementation
Object? get selectedId => _selectedId;
Implementation
@Input('selectedId')
set selectedId(Object? id) {
selectedOption = null;
_selectedId = id;
for (final category in options.keys) {
if (options[category] != null) {
try {
selectedOption = options[category]!.firstWhere((e) => e.id == id);
return;
// ignore: avoid_catching_errors, empty_catches
} on StateError {}
}
}
}