ResponsiveBuilder constructor Null safety

ResponsiveBuilder(
  1. {Key? key,
  2. WidgetBuilder? xlargeScreen,
  3. WidgetBuilder? largeScreen,
  4. WidgetBuilder? mediumScreen,
  5. WidgetBuilder? smallScreen,
  6. WidgetBuilder? xsmallScreen,
  7. WidgetBuilder? fallback}
)

Implementation

ResponsiveBuilder({
  Key? key,
  this.xlargeScreen,
  this.largeScreen,
  this.mediumScreen,
  this.smallScreen,
  this.xsmallScreen,
  WidgetBuilder? fallback,
}) : super(key: key) {
  _fallback = fallback ?? (_) => const SizedBox.shrink();
}