BoxyLayerContext class
A convenient wrapper to PaintingContext, provides methods to push compositing Layers from the paint methods of BoxyDelegate.
You can obtain a layer context in a delegate through the BoxyDelegate.layers getter.
See also:
- BoxyDelegate, which has an example on how to use layers.
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
-
add(
{required Layer layer}) → void - Pushes a Layer to the compositing tree similar to push, but can't paint anything on top of it.
-
alpha(
{required int alpha, required VoidCallback paint, Offset offset = Offset.zero, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes an OpacityLayer to the compositing tree, calling
paint
to paint on top of the layer. -
clipPath(
{required Path path, required VoidCallback paint, Clip clipBehavior = Clip.antiAlias, Offset offset = Offset.zero, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes a ClipPathLayer to the compositing tree, calling
paint
to paint on top of the layer. -
clipRect(
{required Rect rect, required VoidCallback paint, Clip clipBehavior = Clip.antiAlias, Offset offset = Offset.zero, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes a ClipRectLayer to the compositing tree, calling
paint
to paint on top of the layer. -
clipRRect(
{required RRect rrect, required VoidCallback paint, Clip clipBehavior = Clip.antiAlias, Offset offset = Offset.zero, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes a ClipRRectLayer to the compositing tree, calling
paint
to paint on top of the layer. -
colorFilter(
{required ColorFilter colorFilter, required VoidCallback paint, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes a ColorFilterLayer to the compositing tree, calling
paint
to paint on top of the layer. -
imageFilter(
{required ImageFilter imageFilter, required VoidCallback paint, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes a ImageFilterLayer to the compositing tree, calling
paint
to paint on top of the layer. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
offset(
{required Offset offset, required VoidCallback paint, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes an OffsetLayer to the compositing tree, calling
paint
to paint on top of the layer. -
opacity(
{required double opacity, required VoidCallback paint, Offset offset = Offset.zero, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes an OpacityLayer to the compositing tree, calling
paint
to paint on top of the layer. -
push(
{required VoidCallback paint, ContainerLayer? layer, Rect? bounds, Offset offset = Offset.zero}) → void -
Pushes a ContainerLayer to the current recording, calling
paint
to paint on top of the layer. -
toString(
) → String -
A string representation of this object.
inherited
-
transform(
{required Matrix4 transform, required VoidCallback paint, Offset offset = Offset.zero, Rect? bounds, LayerKey< Layer> ? key}) → void -
Pushes an TransformLayer to the compositing tree, calling
paint
to paint on top of the layer.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited