DownloadableFont class

Downloadable font object

Implementers

Constructors

DownloadableFont.new(String url, String name)
Create a downloadable font object
const

Properties

hashCode int
The hash code for this object.
no setterinherited
name String
The Font filename
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
url String
The Url to get the font from
final

Methods

getFont({PdfBaseCache? pdfCache, bool protect = false, Map<String, String>? headers, String assetPrefix = 'google_fonts/', AssetBundle? bundle, bool cache = true}) Future<Font>
Get the font to use in a Pdf document
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.
inherited

Static Properties

cache PdfBaseCache
The cache to use
getter/setter pair