ScreenshotPlatform class abstract

The interface that platform-specific implementations of screenshot must implement.

Platform implementations should extend this class rather than implement it directly. Extending this class ensures that the platform implementation doesn't break when new methods are added to the interface.

Inheritance
  • Object
  • PlatformInterface
  • ScreenshotPlatform
Implementers

Constructors

ScreenshotPlatform()
Constructs a ScreenshotPlatform.

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

capture({required ScreenshotMode mode, bool includeCursor = false, int? displayId}) Future<CapturedData?>
Capture a screenshot.
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

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