ComponentPresets class

Preset configuration for component previews

Inheritance

Constructors

ComponentPresets.new({Size size = ComponentSizes.medium, Color backgroundColor = Colors.white})
const

Properties

backgroundColor Color
Initial background color
final
hashCode int
The hash code for this object.
no setterinherited
initialHeight double
Get the initial height for this preset
no setteroverride
initialWidth double
Get the initial width for this preset
no setteroverride
isScreen bool
Returns true if this preset is for a screen, false for a component
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size Size
Size of the component
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