Margin constructor

const Margin({
  1. required EdgeInsetsGeometry margin,
  2. required Widget child,
  3. Key? key,
})

Creates a margin widget.

margin the margin to apply. i.e. EdgeInsets.all(8.0)

child the Widget around which the margin will be applied.

Implementation

const Margin({required this.margin, required this.child, Key? key})
    : super(key: key);