MetaData constructor Null safety

const MetaData(
  1. {Key? key,
  2. dynamic metaData,
  3. HitTestBehavior behavior,
  4. Widget? child}
)

Creates a widget that hold opaque meta data.

The behavior argument defaults to HitTestBehavior.deferToChild.

Implementation

const MetaData({
  Key? key,
  this.metaData,
  this.behavior = HitTestBehavior.deferToChild,
  Widget? child,
}) : super(key: key, child: child);