Margin.fromEdgeInsets constructor
Margin.fromEdgeInsets(
- 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,
);
}