ImagePlaceholder class

Constructors

ImagePlaceholder({required ImagePlaceholderType type, String? blurHash})
const

Properties

blurHash String?
The BlurHash string; present when type is ImagePlaceholderType.blurhash.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
type ImagePlaceholderType
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

fromJson(Map<String, dynamic>? json) ImagePlaceholder?
Parses a placeholder object. Returns null when absent or when the type is missing/unknown, so callers treat it as "no placeholder".