CupertinoUserInterfaceLevel constructor Null safety

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

Creates a CupertinoUserInterfaceLevel to change descendant Cupertino widget's visual level.

Implementation

const CupertinoUserInterfaceLevel({
  Key? key,
  required CupertinoUserInterfaceLevelData data,
  required Widget child,
}) : assert(data != null),
    _data = data,
    super(key: key, child: child);