mapOrNull<TResult extends Object?> method Null safety

  1. @optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>(
  1. {TResult? bytes(
    1. MemoryImage value
    )?,
  2. TResult? asset(
    1. AssetImage value
    )?,
  3. TResult? network(
    1. NetworkImage value
    )?}
)
@optionalTypeArgs, inherited

Implementation

@optionalTypeArgs
TResult? mapOrNull<TResult extends Object?>({
  TResult? Function(MemoryImage value)? bytes,
  TResult? Function(AssetImage value)? asset,
  TResult? Function(NetworkImage value)? network,
}) =>
    throw _privateConstructorUsedError;