IconData class
Icon data. For icon generated from display name contains Letters + Color fields.
- Annotations
-
- @freezed
Constructors
- IconData({@JsonKey(name: 'sm') required SingleIcon sm, @JsonKey(name: 'lg') required SingleIcon lg, @JsonKey(name: 'letters') String? letters, @JsonKey(name: 'color') String? color, @JsonKey(name: 'blurhash') String? blurhash, @Deprecated('Deprecated.') @JsonKey(name: 'stub') String? stub})
-
constfactory
-
IconData.fromJson(Map<
String, dynamic> json) -
factory
Properties
- blurhash → String?
-
Compact representation of a placeholder for an image (experimental).
no setterinherited
- color → String?
-
Icon background color (only for stub icon).
no setterinherited
-
copyWith
→ $IconDataCopyWith<
IconData> -
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- letters → String?
-
Letters (only for stub icon).
no setterinherited
- lg → SingleIcon
-
Large image.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sm → SingleIcon
-
Small icon.
no setterinherited
- stub → String?
-
Deprecated.
no setterinherited
Methods
-
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
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited