EaseXDevice class

Constructors

EaseXDevice()

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

deviceInfo Future<Map<String, dynamic>>
Returns a map of current device info.
no setter
isAndroid bool
no setter
isIOS bool
no setter

Static Methods

getAppBarHeight() double
getBottomNavigationBarHeight() double
getDeviceData() Future<Map<String, dynamic>>
Detects the platform and gets respective device info.
getKeyboardHeight(BuildContext context) double
getPixelRatio(BuildContext context) double
getScreenHeight(BuildContext context) double
getScreenWidth(BuildContext context) double
getStatusBarHeight(BuildContext context) double
hasInternetConnection() Future<bool>
hideKeyboard(BuildContext context) → void
hideStatusBar() → void
isKeyboardVisible(BuildContext context) bool
isLandscapeOrientation(BuildContext context) bool
isPhysicalDevice() Future<bool>
isPortraitOrientation(BuildContext context) bool
setFullScreen(bool enable) → void
setPreferredOrientations(List<DeviceOrientation> orientations) Future<void>
setStatusBarColor(Color color) Future<void>
showStatusBar() → void
vibrate() → void