DeviceScreenX extension
Extension to compare and get type of DeviceScreen easily,
additionally we can get the value depending of the current screen
with getScreenValue
method
- on
Methods
-
getScreenValue<
T> (ScreenModel< T> sbp) → T? -
Available on DeviceScreen, provided by the DeviceScreenX extension
-
isDesktop(
) → bool -
Available on DeviceScreen, provided by the DeviceScreenX extension
-
isMobile(
) → bool -
Available on DeviceScreen, provided by the DeviceScreenX extension
-
isTablet(
) → bool -
Available on DeviceScreen, provided by the DeviceScreenX extension
Static Methods
-
fromBreakpoint(
double deviceWidth, ScreenBreakpoints breakpoints) → DeviceScreen -
Available on DeviceScreen, provided by the DeviceScreenX extension