TypographyConfig class
Configuration for widget typography styling.
Constructors
- TypographyConfig({required String fontFamily, required double titleSize, required double bodySize, required double captionSize})
-
Creates a new TypographyConfig instance.
const
-
TypographyConfig.fromJson(Map<
String, dynamic> json) -
Creates a TypographyConfig from a JSON map.
factory
Properties
- bodySize → double
-
Body font size in points.
final
- captionSize → double
-
Caption font size in points.
final
- fontFamily → String
-
Font family name.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- titleSize → double
-
Title font size in points.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts this TypographyConfig to a JSON map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited