ESPlatform class abstract

Constructors

ESPlatform()

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

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

isWeb bool
can be used to check platform is web or not using kIsWeb internally
no setter

Static Methods

isAndroid(BuildContext context) bool
Will return true if platform is Android
isiOS(BuildContext context) bool
Will return true if platform is iOS
isMobile(BuildContext context) bool
Will return true if platform is either Android or iOS
isSmallScreen(BuildContext context, {double width = 500}) bool
Will return true if screen size is less than size. size is default to 500
isWindows(BuildContext context) bool
Will return true if platform is Windows
targetPlatform(BuildContext context) TargetPlatform
Get the platform type TargetPlatform