FlutterMultiDisplayPlatform class abstract

The platform interface for the flutter_multi_display plugin.

This abstract class provides the interface that platform-specific implementations must implement. It handles platform-specific functionality for managing multiple displays and shared state across displays in Flutter applications.

To implement a new platform-specific implementation of flutter_multi_display, extend this class with an implementation that performs the platform-specific behavior. Each method throws UnimplementedError by default to ensure implementations override all required functionality.

Inheritance
  • Object
  • PlatformInterface
  • FlutterMultiDisplayPlatform
Implementers

Constructors

FlutterMultiDisplayPlatform()
Constructs a FlutterMultiDisplayPlatform.

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

clearState(String type) Future<void>
Clears the shared state for a specific type.
getAllState() Future<Map<String, dynamic>>
Retrieves all shared states across all types.
getPlatformVersion() Future<String?>
Gets the version of the current platform.
getState(String type) Future<Map<String, dynamic>?>
Retrieves the shared state for a specific type.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setupMultiDisplay(List<String> entrypoints, {bool portBased = false}) Future<void>
Initializes the multi-display functionality with the specified configuration.
toString() String
A string representation of this object.
inherited
updateState(String type, Map<String, dynamic>? state) Future<void>
Updates the shared state for a specific type across displays.

Operators

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

Static Properties

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