GitsBreakpoint class
The GitsBreakpoint
class represents a breakpoint in a responsive design system, with properties
such as start and end values, width and height design values, target, text scale factor, and text
auto size.
- Annotations
Constructors
- GitsBreakpoint({required double start, double? end, required double widthDesign, required double heightDesign, required String target, double textScaleFactor = 1, bool textAutoSize = false, double? minTextScaleFactor, double? maxTextScaleFactor})
-
const
- GitsBreakpoint.desktop({double? start, double? end, double? widthDesign, double? heightDesign, double textScaleFactor = 1.5, bool textAutoSize = true, double? minTextScaleFactor, double? maxTextScaleFactor})
-
const
- GitsBreakpoint.mobile({double? start, double? end, double? widthDesign, double? heightDesign, double textScaleFactor = 1, bool textAutoSize = true, double? minTextScaleFactor, double? maxTextScaleFactor})
-
const
- GitsBreakpoint.tablet({double? start, double? end, double? widthDesign, double? heightDesign, double textScaleFactor = 1.25, bool textAutoSize = true, double? minTextScaleFactor, double? maxTextScaleFactor})
-
const
Properties
- end → double?
-
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heightDesign → double
-
height design in potrait mode.
final
- maxTextScaleFactor → double?
-
final
- minTextScaleFactor → double?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- start → double
-
final
- target → String
-
final
- textAutoSize → bool
-
final
- textScaleFactor → double
-
final
- widthDesign → double
-
width design in potrait mode.
final
Methods
-
copyWith(
{double? start, double? end, double? widthDesign, double? heightDesign, String? target, double? textScaleFactor, bool? textAutoSize, double? minTextScaleFactor, double? maxTextScaleFactor}) → GitsBreakpoint -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override