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
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.