SnapshotMode enum Null safety

Controls how the SnapshotWidget paints its child.

Inheritance

Constructors

SnapshotMode()
const

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.
read-onlyinherited
index int
A numeric identifier for the enumerated value.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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.
[permissive, normal, forced]