TerminateRestartPlatform class abstract

The interface that implementations of terminate_restart must implement.

Platform implementations should extend this class rather than implement it as terminate_restart does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added TerminateRestartPlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • TerminateRestartPlatform

Constructors

TerminateRestartPlatform.new()
Constructs a TerminateRestartPlatform.

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

gc() Future<void>
Forces garbage collection to clean up old platform channels
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
restartApp({bool clearData = false, bool preserveKeychain = false, bool preserveUserDefaults = false, bool terminate = true}) Future<bool>
Restarts the app with the given options.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance TerminateRestartPlatform
The default instance of TerminateRestartPlatform to use.
getter/setter pair