Flex constructor Null safety

const Flex(
  1. {Key? key,
  2. required Axis direction,
  3. MainAxisAlignment mainAxisAlignment,
  4. MainAxisSize mainAxisSize,
  5. CrossAxisAlignment crossAxisAlignment,
  6. TextDirection? textDirection,
  7. VerticalDirection verticalDirection,
  8. TextBaseline? textBaseline,
  9. Clip clipBehavior,
  10. List<Widget> children}
)

Implementation

const factory Flex(
    {final Key? key,
    required final Axis direction,
    final MainAxisAlignment mainAxisAlignment,
    final MainAxisSize mainAxisSize,
    final CrossAxisAlignment crossAxisAlignment,
    final TextDirection? textDirection,
    final VerticalDirection verticalDirection,
    final TextBaseline? textBaseline,
    final Clip clipBehavior,
    final List<Widget> children}) = _$Flex;