Webfont class Null safety

Metadata describing a family of fonts.


Webfont({String? category, String? family, Map<String, String>? files, String? kind, String? lastModified, List<String>? subsets, List<String>? variants, String? version})
Webfont.fromJson(Map _json)


category String?
The category of the font.
read / write
family String?
The name of the font.
read / write
files Map<String, String>?
The font files (with all supported scripts) for each one of the available variants, as a key : value map.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
kind String?
This kind represents a webfont object in the webfonts service.
read / write
lastModified String?
The date (format "yyyy-MM-dd") the font was modified for the last time.
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
subsets List<String>?
The scripts supported by the font.
read / write
variants List<String>?
The available variants for the font.
read / write
version String?
The font version.
read / write


noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toJson() Map<String, dynamic>
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]