buildPadding method Null safety

Widget? buildPadding(
  1. BuildMetadata meta,
  2. Widget child,
  3. EdgeInsetsGeometry padding
)

Builds Padding.

Implementation

Widget? buildPadding(
  BuildMetadata meta,
  Widget child,
  EdgeInsetsGeometry padding,
) =>
    padding == EdgeInsets.zero
        ? child
        : Padding(padding: padding, child: child);