M3ESpacing class

Material 3 Expressive spacing tokens.

Mirrors the spacing scale from the m3e_design package: a six-step scale used for gaps, padding and run spacing across components.

Annotations

Constructors

M3ESpacing({required double xs, required double sm, required double md, required double lg, required double xl, required double xxl})
Creates a custom spacing scale.
const
M3ESpacing.regular()
The regular density spacing scale (4 / 8 / 12 / 16 / 24 / 32).
const

Properties

hashCode int
Hash code for this spacing scale.
no setteroverride
lg double
16dp.
final
md double
12dp.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sm double
8dp.
final
xl double
24dp.
final
xs double
4dp.
final
xxl double
32dp.
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
Equality based on public fields.
override

Static Methods

lerp(M3ESpacing a, M3ESpacing b, double t) M3ESpacing
Linearly interpolates between two spacing scales.