tryGetUri method

Uri? tryGetUri(
  1. int index, {
  2. List<int>? alternativeIndices,
  3. dynamic innerMapKey,
  4. int? innerIndex,
  5. Uri? defaultValue,
  6. ElementConverter<Uri>? converter,
})

Tries to convert the element at index (or fallback indices) to Uri.

Implementation

Uri? tryGetUri(
  int index, {
  List<int>? alternativeIndices,
  dynamic innerMapKey,
  int? innerIndex,
  Uri? defaultValue,
  ElementConverter<Uri>? converter,
}) => ConvertObjectImpl.tryToUri(
  _firstForIndices(index, alternativeIndices: alternativeIndices),
  mapKey: innerMapKey,
  listIndex: innerIndex,
  defaultValue: defaultValue,
  converter: converter,
  debugInfo: {
    'index': index,
    if (alternativeIndices != null && alternativeIndices.isNotEmpty)
      'altIndexes': alternativeIndices,
  },
);