SystemAlertWindow class Null safety

Constructors

SystemAlertWindow()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

getLogFile Future<String?>
Fetches the generated log file
read-only
platformVersion Future<String?>
Fetches the current platform version
read-only

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
requestPermissions({SystemWindowPrefMode prefMode = SystemWindowPrefMode.DEFAULT}) Future<bool?>
Request the corresponding system window permission
showSystemWindow({required SystemWindowHeader header, SystemWindowBody? body, SystemWindowFooter? footer, 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({required SystemWindowHeader header, SystemWindowBody? body, SystemWindowFooter? footer, 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