ImageProvider class Null safety

Implementers
Annotations
  • @freezed

Constructors

ImageProvider.asset(String path, {String? package})
const
factory
ImageProvider.bytes(List<int> bytes, {@Default(1.0) double scale})
const
factory
ImageProvider.fromJson(Map<String, Object?> json)
factory
ImageProvider.network(String url, {@Default(1.0) double scale, Map<String, String>? headers})
const
factory

Properties

hashCode int
The hash code for this object.
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

map<TResult extends Object?>({required TResult bytes(MemoryImage value), required TResult asset(AssetImage value), required TResult network(NetworkImage value)}) → TResult
@optionalTypeArgs, inherited
mapOrNull<TResult extends Object?>({TResult? bytes(MemoryImage value)?, TResult? asset(AssetImage value)?, TResult? network(NetworkImage value)?}) → TResult?
@optionalTypeArgs, inherited
maybeMap<TResult extends Object?>({TResult bytes(MemoryImage value)?, TResult asset(AssetImage value)?, TResult network(NetworkImage value)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
maybeWhen<TResult extends Object?>({TResult bytes(List<int> bytes, double scale)?, TResult asset(String path, String? package)?, TResult network(String url, double scale, Map<String, String>? headers)?, required TResult orElse()}) → TResult
@optionalTypeArgs, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited
when<TResult extends Object?>({required TResult bytes(List<int> bytes, double scale), required TResult asset(String path, String? package), required TResult network(String url, double scale, Map<String, String>? headers)}) → TResult
@optionalTypeArgs, inherited
whenOrNull<TResult extends Object?>({TResult? bytes(List<int> bytes, double scale)?, TResult? asset(String path, String? package)?, TResult? network(String url, double scale, Map<String, String>? headers)?}) → TResult?
@optionalTypeArgs, inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited