PreviewLayer class

Predefined preview layers to be used on MagicEye constructor.

Example:

MaterialPageRoute(
 builder: (context) => MagicEye(
   previewLayer: PreviewLayer.circleFocus(scale: 2 / 3),
 ),
),

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

aspectFocus({double scale: 0.5, Color color: Colors.black38}) PreviewLayerBuilder
Generates a layer that focus on a rectangular area that respects the preview's aspect ratio. [...]
circleFocus({double scale: 0.5, Color color: Colors.black38}) PreviewLayerBuilder
Generates a layer that focus on a circular area. [...]
grid({Color color: Colors.white30}) PreviewLayerBuilder
Generate a grid layer with color.
image(Image image, {double scale: 1}) PreviewLayerBuilder
Generates a layer with a centered image. [...]
squareFocus({double scale: 0.5, Color color: Colors.black38}) PreviewLayerBuilder
Generates a layer that focus on a square area. [...]