SnapshotMode enum

Controls how the SnapshotWidget paints its child.

Inheritance
Available extensions

Values

permissive → const SnapshotMode

The child is snapshotted, but only if all descendants can be snapshotted.

If there is a platform view in the children of a snapshot widget, the snapshot will not be used and the child will be rendered using SnapshotPainter.paint. This uses an un-snapshotted child and by default paints it with no additional modification.

normal → const SnapshotMode

An error is thrown if the child cannot be snapshotted.

This setting is the default state of the SnapshotWidget.

forced → const SnapshotMode

The child is snapshotted and any child platform views are ignored.

This mode can be useful if there is a platform view descendant that does not need to be included in the snapshot.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Constants

values → const List<SnapshotMode>
A constant List of the values in this enum, in order of their declaration.