BlockNoteFontFile class
A font file for custom font configuration.
Represents a single font file with its path, format, weight, and style.
- Available extensions
Constructors
- BlockNoteFontFile({required String path, required BlockNoteFontFormat format, FontWeight? weight, FontStyle? style})
-
Creates a new font file configuration.
const
-
BlockNoteFontFile.fromJson(Map<
String, dynamic> json) -
Creates a BlockNoteFontFile from a JSON map.
factory
Properties
- cssStyle → String?
-
Available on BlockNoteFontFile, provided by the BlockNoteFontFileExtension extension
Gets the CSS font-style value.no setter - cssWeight → int?
-
Available on BlockNoteFontFile, provided by the BlockNoteFontFileExtension extension
Gets the CSS font-weight value.no setter - format → BlockNoteFontFormat
-
Font file format.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- path → String
-
Path to the font file (relative to the asset server root).
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → FontStyle?
-
Font style using Flutter's FontStyle enum.
final
- weight → FontWeight?
-
Font weight using Flutter's FontWeight enum.
final
Methods
-
copyWith(
{String? path, BlockNoteFontFormat? format, Object? weight = _unset, Object? style = _unset}) → BlockNoteFontFile -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toCssSrc(
) → String -
Available on BlockNoteFontFile, provided by the BlockNoteFontFileCssExtension extension
Converts to CSS src format. -
toJson(
) → Map< String, dynamic> - Converts this font file to JSON.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override