Margin.fromEdgeInsets constructor

Margin.fromEdgeInsets(
  1. EdgeInsets insets
)

Creates a Margin from EdgeInsets.

Implementation

factory Margin.fromEdgeInsets(EdgeInsets insets) {
  return Margin(
    top: insets.top,
    right: insets.right,
    bottom: insets.bottom,
    left: insets.left,
  );
}