FlutterWidget.json constructor Null safety

const FlutterWidget.json(
  1. {Key? key,
  2. required Map<String, Object?>? json,
  3. WrappingBuilder<Object>? wrappingBuilder,
  4. WidgetBuilder? emptyBuilder,
  5. void onLinkTap(
    1. Uri
    )?,
  6. Map<String, CustomWidgetBuilder> customWidgets = const {}}
)

Implementation

const FlutterWidget.json({
  super.key,
  required this.json,
  this.wrappingBuilder,
  this.emptyBuilder,
  this.onLinkTap,
  this.customWidgets = const {},
})  : assetPath = null,
      widget = null,
      httpClient = null,
      formData = null,
      request = null;