FileInfo class

Implementers
Annotations
  • @freezed

Constructors

FileInfo(String id, int width, int height, Original original)
const
factory
FileInfo.color(String id, int width, int height, Original original, @JsonKey(name: 'main_colors', fromJson: RGB.fromJsonArray) List<RGB> mainColors)
const
factory
FileInfo.fromJson(Map<String, dynamic> json)
factory

Properties

copyWith → $FileInfoCopyWith<FileInfo>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
height int
no setterinherited
id String
no setterinherited
original Original
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width int
no setterinherited

Methods

map<TResult extends Object?>(TResult $default(_FileInfo value), {required TResult color(ColorRecognition value)}) → TResult
inherited
mapOrNull<TResult extends Object?>(TResult? $default(_FileInfo value)?, {TResult? color(ColorRecognition value)?}) → TResult?
inherited
maybeMap<TResult extends Object?>(TResult $default(_FileInfo value)?, {TResult color(ColorRecognition value)?, required TResult orElse()}) → TResult
inherited
maybeWhen<TResult extends Object?>(TResult $default(String id, int width, int height, Original original)?, {TResult color(String id, int width, int height, Original original, List<RGB> mainColors)?, 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?>(TResult $default(String id, int width, int height, Original original), {required TResult color(String id, int width, int height, Original original, List<RGB> mainColors)}) → TResult
inherited
whenOrNull<TResult extends Object?>(TResult? $default(String id, int width, int height, Original original)?, {TResult? color(String id, int width, int height, Original original, List<RGB> mainColors)?}) → TResult?
inherited

Operators

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