CurrentPlatform class

Properties

hashCode → int
The hash code for this object.
no setterinherited
name → String
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

getName() → Future<String>
NOTE: Only supports Android, iOS, MacOS, Windows, Web.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
supportsPushNotifications() → bool
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Properties

isDesktop → bool
no setter
isMobile → bool
no setter
isOsAndroid → bool
final
isOsApple → bool
final
isOsDeskop → bool
final
isOsIos → bool
final
isOsLinux → bool
final
isOsMacOs → bool
final
isOsMobile → bool
final
isOsWindows → bool
final
isTablet → bool
no setter
isWindowSizeMobile → bool
no setter
isWindowSizeTabletOrDesktop → bool
no setter

Static Methods

create() → Future<CurrentPlatform>