toUriOr method
Uri
toUriOr(
- Uri defaultValue, {
- dynamic mapKey,
- int? listIndex,
- DynamicConverter<
Uri> ? converter,
Converts to Uri, falling back to defaultValue on failure.
Implementation
Uri toUriOr(
Uri defaultValue, {
dynamic mapKey,
int? listIndex,
DynamicConverter<Uri>? converter,
}) =>
tryToUri(
mapKey: mapKey,
listIndex: listIndex,
defaultValue: defaultValue,
converter: converter,
) ??
defaultValue;