MemoryImage class Null safety

Implemented types

Constructors

MemoryImage(List<int> bytes, {double scale})
const
factory
MemoryImage.fromJson(Map<String, dynamic> json)
factory

Properties

bytes List<int>
read-only
copyWith → _$$MemoryImageCopyWith<_$MemoryImage>
@JsonKey(ignore: true), read-only
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
scale double
read-only

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