SystemAlertWindow class
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString ()
→ String
A string representation of this object.
inherited
Static Methods
checkPermissions ({SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT })
→ Future <bool ? >
Check if system window permission is granted
closeSystemWindow ({SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT })
→ Future <bool ? >
Closes the system window
enableLogs (bool flag )
→ Future <void >
Method to enable the logs. By default, logs are disabled
registerOnClickListener (Function callBackFunction )
→ Future <bool >
Register your callbackFunction to receive click events
Your callback function should be declared as a global function (Outside the scope of the class)
Don't forget to add @pragma('vm:entry-point') above your global function
removeOnClickListener ()
→ Future <bool >
requestPermissions ({SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT })
→ Future <bool ? >
Request the corresponding system window permission
showSystemWindow ({SystemWindowBody ? body , SystemWindowMargin ? margin , SystemWindowGravity gravity = SystemWindowGravity.CENTER , int ? width , int ? height , String notificationTitle = "Title" , String notificationBody = "Body" , SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT , Color backgroundColor = Colors.white , bool isDisableClicks = false })
→ Future <bool ? >
Show System Window
updateSystemWindow ({SystemWindowBody ? body , SystemWindowMargin ? margin , SystemWindowGravity gravity = SystemWindowGravity.CENTER , int ? width , int ? height , String notificationTitle = "Title" , String notificationBody = "Body" , SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT , Color backgroundColor = Colors.white , bool isDisableClicks = false })
→ Future <bool ? >
Update System Window
system_alert_window 1.3.0