StatelessWidgetWithCallback constructor

const StatelessWidgetWithCallback({
  1. Key? key,
  2. required Widget child,
  3. void buildCallback(
    1. BuildContext context
    )?,
  4. void postFrameCallback(
    1. BuildContext context
    )?,
})

Creates StatelessWidgetWithCallback with non-null child.

Implementation

const StatelessWidgetWithCallback({
  Key? key,
  required Widget this.child,
  this.buildCallback,
  this.postFrameCallback,
})  : builder = null,
      super(key: key);