tryGetUri method

Uri? tryGetUri(
  1. K key, {
  2. List<K>? alternativeKeys,
  3. dynamic innerKey,
  4. int? innerListIndex,
  5. Uri? defaultValue,
  6. ElementConverter<Uri>? converter,
})

Tries to convert the value at key (or alternativeKeys) to Uri.

Implementation

Uri? tryGetUri(
  K key, {
  List<K>? alternativeKeys,
  dynamic innerKey,
  int? innerListIndex,
  Uri? defaultValue,
  ElementConverter<Uri>? converter,
}) => ConvertObjectImpl.tryToUri(
  _firstValueForKeys(key, alternativeKeys: alternativeKeys),
  mapKey: innerKey,
  listIndex: innerListIndex,
  defaultValue: defaultValue,
  converter: converter,
  debugInfo: {
    'key': key,
    if (alternativeKeys != null && alternativeKeys.isNotEmpty)
      'altKeys': alternativeKeys,
  },
);