FMargins class

Annotations

Constructors

FMargins({required List<double> margins, List<double>? marginsTablet, List<double>? marginsDesktop})
const

Properties

hashCode int
The hash code for this object.
no setterinherited
margins List<double>
final
marginsDesktop List<double>?
final
marginsTablet List<double>?
final
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
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited

Methods

copyWith({List<double>? margins, List<double>? marginsTablet, List<double>? marginsDesktop}) FMargins
Write a copyWith method that returns a new instance of the class with the provided fields replaced with the new values.
get({required BuildContext context}) EdgeInsets
getList(BuildContext context, {required bool forPlay, required DeviceType deviceType}) List<double>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
inherited
update({required List<double> value, required BuildContext context, required DeviceType deviceType}) Map<String, dynamic>

Operators

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

Static Methods

fromJson(dynamic json) FMargins