DeclarativeEdgeInsets constructor

DeclarativeEdgeInsets({
  1. double? left,
  2. double? top,
  3. double? right,
  4. double? bottom,
})

Base class for declarative padding.

Implementation

DeclarativeEdgeInsets({
  double? left,
  double? top,
  double? right,
  double? bottom,
}) : super.only(
        left: left ?? defaultPadding,
        top: top ?? defaultPadding,
        right: right ?? defaultPadding,
        bottom: bottom ?? defaultPadding,
      );