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?
isDesktop() bool
isMobile() bool
isTablet() bool

Static Methods

fromBreakpoint(double deviceWidth, ScreenBreakpoints breakpoints) DeviceScreen