TakeScreenshotController class
Screenshot manager to capture the screen in different ways
Constructors
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
- Captures png image and shared it with others apps.
-
captureAsFile(
{String path = '', double pixelRatio = 1}) → Future< File> -
Captures
File
and saves to givenpath
. Default path is $applicationDocumentsDirectory/$file.png -
captureAsPngBytes(
{double pixelRatio = 1, Duration delay = const Duration(milliseconds: 20)}) → Future< Uint8List> -
Captures a
Uint8List
.delay
is to avoid a bug, you do not need to send it -
captureAsUiImage(
{double pixelRatio = 1, Duration delay = const Duration(milliseconds: 20)}) → Future< Image> -
Captures a ui.Image.
delay
is to avoid a bug, you do not need to send it -
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