FlutterWidget.asset constructor Null safety

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

Implementation

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