AndroidFontInfo class

Constructors

AndroidFontInfo.new({bool? isCustom, String? typefaceName, FontWeight? weight, FontStyle? style})

Properties

hashCode int
The hash code for this object.
no setteroverride
isCustom bool?
Whether to use a custom font. Default is false.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style FontStyle?
The font style applied to the typeface. Accepts FontStyle.normal or FontStyle.italic. Only supported on Android.
final
typefaceName String?
The Android system typeface name, such as "DEFAULT", "DEFAULT_BOLD", "SANS_SERIF", "SERIF", "MONOSPACE". Or custom font name, such as: "fonts/kaushanscript_regular.ttf". (You need to set the isCustom=true and put the font file in the "assets" directory: app/src/main/assets/fonts/kaushanscript_regular.ttf)
final
weight FontWeight?
The font weight applied to the typeface. Accepts any of Flutter's FontWeight constants (FontWeight.w100FontWeight.w900, FontWeight.normal, FontWeight.bold).
final

Methods

deepCopy() AndroidFontInfo
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.
override