SPSpacingTokens class

Spacing scale used by Sixplace theme tokens.

Annotations

Constructors

SPSpacingTokens({double xs = 4, double sm = 8, double md = 16, double lg = 24, double xl = 32, double xxl = 48})
Creates a spacing scale.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
lg → double
Large spacing.
final
md → double
Medium spacing.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sm → double
Small spacing.
final
xl → double
Extra-large spacing.
final
xs → double
Extra-small spacing.
final
xxl → double
Largest default spacing token.
final

Methods

copyWith({double? xs, double? sm, double? md, double? lg, double? xl, double? xxl}) → SPSpacingTokens
Returns a copy with selected values replaced.
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

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