M3ETypography class

Material 3 Expressive typography tokens.

  • base starts from M3 (Typography.material2021).
  • Optionally remaps fonts: brand (UI) for display/headline/title/label and plain (reading) for body.
  • Adds an emphasized set (weight/tracking tweaks) for expressive hierarchy.
Available extensions
Annotations

Constructors

M3ETypography({required TextTheme base, required M3EEmphasized emphasized})
const
M3ETypography.defaultFor(Brightness brightness, {String? brandFontFamily, String? plainFontFamily, TextTheme? baseOverride})
Build default M3E typography from M3.
factory

Properties

base TextTheme
final
buttonFontSize ButtonFontSize

Available on M3ETypography, provided by the M3EButtonFontSizeExt extension

no setter
emphasized M3EEmphasized
final
hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

lerp(M3ETypography a, M3ETypography b, double t) M3ETypography
Lerp the full token set.