GitsBreakpointsData class

The GitsBreakpointsData class represents data related to device breakpoints, orientation, text scaling, and media queries in a Dart application.

Annotations

Constructors

GitsBreakpointsData({required Orientation orientation, required double textScaleFactor, required GitsBreakpoint breakpoint, required MediaQueryData mediaQuery, required double aspectRatio})
const

Properties

aspectRatio double
The aspectRatio property in the GitsBreakpointsData class represents the aspect ratio of the device's screen. Aspect ratio is the ratio of the width to the height of the screen. It is used to determine the shape of the screen, whether it is more wide or more tall.
final
breakpoint GitsBreakpoint
The breakpoint property in the GitsBreakpointsData class represents the current breakpoint of the device. A breakpoint is a specific screen width range at which the layout and design of the UI may need to be adjusted to provide a better user experience.
final
hashCode int
The hash code for this object.
no setteroverride
mediaQuery MediaQueryData
The mediaQuery property in the GitsBreakpointsData class represents the current media query data of the device. It provides information about the device's screen size, pixel density, and other display-related properties. This information can be used to make responsive design decisions and adapt the UI layout and design based on the device's capabilities.
final
orientation Orientation
The orientation property in the GitsBreakpointsData class represents the current orientation of the device. It can have two possible values: Orientation.portrait or Orientation.landscape. This property is used to determine the layout and design of the UI based on the device's orientation.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
textScaleFactor double
The textScaleFactor property in the GitsBreakpointsData class represents the scaling factor for the text size on the device. It is used to adjust the size of the text based on the user's preference for larger or smaller text. By multiplying the base text size with the textScaleFactor, the text size can be dynamically adjusted to accommodate the user's preference.
final

Methods

isDesktop() bool
The function checks if the current breakpoint target is desktop.
isMobile() bool
The function checks if the current breakpoint target is mobile.
isTablet() bool
The function checks if the current breakpoint target is a tablet.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
responsiveValue({required double mobile, double? tablet, double? desktop}) double
The responsiveValue function returns a value based on the device type (mobile, tablet, or desktop), with fallback values for tablet and desktop if not provided.
toString() String
A string representation of this object.
inherited

Operators

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