RefPaint.compose constructor
const
RefPaint.compose(
- RefPaintCallback paintCallback, {
- Key? key,
- RefPaintHitTest? hitTest,
- RefPaintSemanticsBuilder semanticsBuilder,
- DecorationPosition position,
- Widget? child,
Creates a custom-painted widget using the provided RefPaintCallback.
The PaintingRef interface allows ref.watch() calls to be made
in the same fashion as Ref.watch.
Implementation
const factory RefPaint.compose(
RefPaintCallback paintCallback, {
Key? key,
RefPaintHitTest? hitTest,
RefPaintSemanticsBuilder semanticsBuilder,
DecorationPosition position,
Widget? child,
}) = _RefPaint;