EnrollTypography class
Typography configuration: font family, dynamic type, sizes and (optional) localization overrides.
Constructors
- EnrollTypography({String? fontFamily, bool dynamicTypeEnabled = true, EnrollFontSizes sizes = EnrollFontSizes.defaultSize, EnrollLocalizationOverrides? localizationOverrides})
-
const
Properties
- dynamicTypeEnabled → bool
-
Whether the SDK should scale fonts using the platform font scale.
Defaults to
true.final - fontFamily → String?
-
Custom font identifier. iOS expects the registered PostScript/family
name. Android expects a
res/fontresource name without extension. Whennull, the native SDK default font is used.final - hashCode → int
-
The hash code for this object.
no setterinherited
- localizationOverrides → EnrollLocalizationOverrides?
-
Optional JSON-file based localization overrides.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sizes → EnrollFontSizes
-
Font-size preset. Defaults to EnrollFontSizes.defaultSize.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited