FFontSize class

FFontSize is a feature that allows you to change the size of the text

Annotations

Constructors

FFontSize.new({double size = 16, SizeUnit unit = SizeUnit.pixel, double? sizeTablet, double? sizeDesktop})
Constructor of FFontSize
const

Properties

hashCode int
The hash code for this object.
no setterinherited
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
size double
Value of size of FFontSize
final
sizeDesktop double?
final
sizeTablet double?
final
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
unit SizeUnit
final

Methods

copyWith({double? size, double? sizeTablet, double? sizeDesktop}) FFontSize
get(BuildContext context) double
Get current value of size
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns double to Json
toString() String
A string representation of this object.
inherited
update(double value, BuildContext context, DeviceType deviceType) FFontSize

Operators

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

Static Methods

fromJson(dynamic json) FFontSize
Instantiates FFontSize from Json