padding method

Padding padding({
  1. double? all,
  2. double? left,
  3. double? top,
  4. double? right,
  5. double? bottom,
  6. Key? key,
})

Implementation

Padding padding(
    {double? all,
    double? left,
    double? top,
    double? right,
    double? bottom,
    Key? key}) {
  if (all != null) {
    return Padding(padding: EdgeInsets.all(all));
  }
  return Padding(
    key: key,
    padding: EdgeInsets.only(
        left: left!, top: top!, right: right!, bottom: bottom!),
    child: this,
  );
}