Widget.platform constructor Null safety

const Widget.platform(
  1. {Key? key,
  2. Widget? child,
  3. @Default({}) Map<TargetPlatform, Widget> targets}
)

Implementation

const factory Widget.platform({
  Key? key,
  Widget? child,
  @Default({}) Map<TargetPlatform, Widget> targets,
}) = PlatformWidget;