RefPaint.compose constructor

const RefPaint.compose(
  1. RefPaintCallback paintCallback, {
  2. Key? key,
  3. RefPaintHitTest? hitTest,
  4. RefPaintSemanticsBuilder semanticsBuilder,
  5. DecorationPosition position,
  6. 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;