KeyedOption<K, V>.ofToString constructor

KeyedOption<K, V>.ofToString(
  1. K key,
  2. V value, {
  3. String? label,
  4. dynamic icon,
  5. List? subtitle,
  6. String? selection,
  7. List<String> extraTokens = const [],
})

Implementation

factory KeyedOption.ofToString(
  K key,
  V value, {
  String? label,
  icon,
  List? subtitle,
  String? selection,
  List<String> extraTokens = const [],
}) =>
    _KeyedOption(
      key,
      value,
      label: label ?? "$value",
      icon: icon,
      subtitle: subtitle,
      selection: selection,
      extraTokens: extraTokens,
    );