MyImage class sealed

Available extensions
Annotations
  • @freezed

Constructors

MyImage.asset({required String assetPath, @Default(ImageParams()) ImageParams params})
factory
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>
Create a copy of MyImage with the given fields replaced by the non-null parameter values.
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this MyImage to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
whenOrNull<T>({T? network(String url, ImageParams params)?, T? base64(String base64Code, ImageParams params)?, T? filePathCall(String filePath, ImageParams params)?, T? asset(String assetPath, ImageParams params)?}) → T?

Available on MyImage, provided by the MyImageEx extension

Operators

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