Widget.theme constructor Null safety

const Widget.theme(
  1. {Key? key,
  2. required ThemeData data,
  3. required Widget child}
)

Implementation

const factory Widget.theme({
  Key? key,
  required ThemeData data,
  required Widget child,
}) = Theme;