NetworkFont class Null safety

Data of network font

Constructors

NetworkFont(String family, {required String url})

Properties

family String
Family name of you font
final
fileName String
late, final
hashCode int
The hash code for this object.
read-only, override
id String
late, final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
url String
Url where to download your font file.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
style({Color? color, Color? backgroundColor, double? fontSize, FontWeight? fontWeight, FontStyle? fontStyle, double? letterSpacing, double? wordSpacing, TextBaseline? textBaseline, double? height, Locale? locale, Paint? foreground, Paint? background, List<Shadow>? shadows, List<FontFeature>? fontFeatures, TextDecoration? decoration, Color? decorationColor, TextDecorationStyle? decorationStyle, double? decorationThickness}) TextStyle
Decorate Text with your custom font
toString() String
A string representation of this object.
inherited

Operators

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