DeviceTools class
----------- english syntax
We write: We say: ½ a half OR one half ¼ a quarter OR one quarter ¾ three quarters ⅓ a third OR one third ⅔ two thirds ⅕ a fifth OR one fifth ⅗ three fifths ⅛ an eighth OR one eighth ⅝ five eighths 1½ one and a half 5¾ five and three quarters
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getHeightInsideSafeArea(
BuildContext context) → double -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- heightFullSize ↔ double
-
getter/setter pair
- widthFullSize ↔ double
-
getter/setter pair
Static Methods
-
get75PercentageHeight(
BuildContext context) → double -
get75PercentageWidth(
BuildContext context) → double -
getCostumeHeight(
BuildContext context, double d) → double -
getCostumeWidth(
BuildContext context, double d) → double -
getEighthHeight(
BuildContext context) → double -
getEighthWidth(
BuildContext context) → double -
getFifthHeight(
BuildContext context) → double -
getFifthWidth(
BuildContext context) → double -
getHalfHeight(
BuildContext context) → double -
getHalfWidth(
BuildContext context) → double -
getHeight(
BuildContext context, {String? className}) → double -
getPercentageHeight(
BuildContext context, double p) → double -
getPercentageWidth(
BuildContext context, double p) → double -
getQuarterHeight(
BuildContext context) → double -
getQuarterWidth(
BuildContext context) → double -
getSixthHeight(
BuildContext context) → double -
getSixthWidth(
BuildContext context) → double -
getThirdHeight(
BuildContext context) → double -
getThirdWidth(
BuildContext context) → double -
getWidth(
BuildContext context, {String? className}) → double -
isAndroid(
) → bool -
isBrowserAndroid(
) → bool -
isBrowserIOS(
) → bool -
isBrowserMobile(
) → bool - open from safari or chrome from android or ios
-
isIOS(
) → bool -
isLandscape(
BuildContext context) → bool -
isLandscapeMobile(
BuildContext context) → bool -
isMobile(
) → bool -
isPlatformWeb(
) → bool -
isPortrait(
BuildContext context) → bool -
isPortraitMobile(
BuildContext context) → bool