FontAsset class

Inheritance
Available Extensions

Constructors

FontAsset()

Properties

assetId int
Id of the asset as stored on the backend
getter/setter pairinherited
cdnBaseUrl String
Set the base url of our cdn.
getter/setter pairinherited
cdnUuid Uint8List
The cdn uuid if it exists
getter/setter pairinherited
context ↔ CoreContext
covariantgetter/setter pairinherited
coreType int
no setterinherited
coreTypes Set<int>
no setterinherited
fileAssetReferencers List<WeakReference<FileAssetReferencer<FileAsset>>>
no setterinherited
fileExtension String
Returns the file extension, for example for an image it would be png.
no setter
finalizer Finalizer
getter/setter pairinherited
font ↔ Font?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasValidated bool
no setterinherited
id int
getter/setter pairinherited
name String
Name of the asset
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uniqueFilename String
Returns a unique filename, useful for resolving files out of band.
no setterinherited

Methods

assetIdChanged(int from, int to) → void
inherited
cdnBaseUrlChanged(String from, String to) → void
inherited
cdnUuidChanged(Uint8List from, Uint8List to) → void
inherited
clone<K extends Core<CoreContext>>() → K?
Make a duplicate of this core object, N.B. that all properties excluding object id are copied.
inherited
copy(covariant Core<CoreContext> source) → void
Copies property values, currently doesn't trigger change callbacks. It's meant to be a helper for clone.
inherited
decode(Uint8List bytes) Future<void>
import(ImportStack stack) bool
inherited
nameChanged(String from, String to) → void
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onAdded() → void
inherited
onAddedDirty() → void
inherited
onRemoved() → void
registerFileAssetReferencer(FileAssetReferencer<FileAsset> referencer) → void
Add a callback to be executed when the asset has been loaded/updated
inherited
remove() → void
inherited
setFontCallback(VoidCallback callback, {bool notifyAlreadySet = true}) bool
Call callback when the font is ready. Set notifyAlreadySet to specify if you want to be called if the font is already set.
toString() String
A string representation of this object.
inherited
validate() bool
inherited

Operators

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

Static Methods

parseBytes(Uint8List bytes) Future<Font?>