BlurHash class

Available Extensions

Constructors

BlurHash.components(List<List<ColorTriplet>> components)
Construct a BlurHash object from decoded components. This is useful for e.g. transposing a BlurHash.
BlurHash.decode(String blurHash, {double punch = 1.0})
Decode a BlurHash String to a BlurHash object.
factory
BlurHash.encode(Image image, {int numCompX = 4, int numCompY = 3})
Encodes an image to a BlurHash string.
factory
BlurHash.fromRgb(int red, int green, int blue)
Construct a BlurHash with a single color.
factory

Properties

components List<List<ColorTriplet>>
The decoded components of the BlurHash. This is mostly useful for e.g. transposing a BlurHash.
final
hash String
The actual BlurHash string.
final
hashCode int
The hash code for this object.
no setterinherited
numCompX int
The number of horizontal BlurHash components.
final
numCompY int
The number of vertical BlurHash components.
final
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
toImage(int width, int height) → Image
Returns the actual BlurHash image with the given width and height.
toString() String
A string representation of this object.
inherited

Operators

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