Pad.x constructor

  1. @Deprecated("Use this for debugging purposes only.")
const Pad.x({
  1. double? all,
  2. double? vertical,
  3. double? horizontal,
  4. double? left,
  5. double? top,
  6. double? right,
  7. double? bottom,
})

Sometimes you need to temporarily remove the padding, for debugging reasons. Unfortunately you can't just comment the padding parameter, because the Padding widget doesn't accept null padding. But you can just add .x to the Pad class to remove it. It's marked as deprecated so that you don't forget to change it back to normal.

Implementation

@Deprecated("Use this for debugging purposes only.")
const Pad.x({
  double? all, // ignore: avoid_unused_constructor_parameters
  double? vertical, // ignore: avoid_unused_constructor_parameters
  double? horizontal, // ignore: avoid_unused_constructor_parameters
  double? left, // ignore: avoid_unused_constructor_parameters
  double? top, // ignore: avoid_unused_constructor_parameters
  double? right, // ignore: avoid_unused_constructor_parameters
  double? bottom, // ignore: avoid_unused_constructor_parameters
}) : super.fromLTRB(0, 0, 0, 0);