MyImage class

Implementers
Annotations
  • @freezed

Constructors

MyImage.base64({required String base64Code, @Default(ImageParams()) ImageParams params})
factory
MyImage.filePath({required String filePath, @Default(ImageParams()) ImageParams params})
factory
MyImage.fromJson(Map<String, dynamic> json)
factory
MyImage.network({required String url, @Default(ImageParams()) ImageParams params})
factory

Properties

copyWith → $MyImageCopyWith<MyImage>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
params ImageParams
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

map<TResult extends Object?>({required TResult network(MyNetworkImage value), required TResult base64(MyBase64Image value), required TResult filePath(MyFilePathImage value)}) → TResult
inherited
mapOrNull<TResult extends Object?>({TResult? network(MyNetworkImage value)?, TResult? base64(MyBase64Image value)?, TResult? filePath(MyFilePathImage value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>({TResult network(MyNetworkImage value)?, TResult base64(MyBase64Image value)?, TResult filePath(MyFilePathImage value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>({TResult network(String url, ImageParams params)?, TResult base64(String base64Code, ImageParams params)?, TResult filePath(String filePath, ImageParams params)?, required TResult orElse()}) → TResult
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent 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 network(String url, ImageParams params), required TResult base64(String base64Code, ImageParams params), required TResult filePath(String filePath, ImageParams params)}) → TResult
inherited
whenOrNull<TResult extends Object?>({TResult? network(String url, ImageParams params)?, TResult? base64(String base64Code, ImageParams params)?, TResult? filePath(String filePath, ImageParams params)?}) → TResult?
inherited

Operators

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