getMarginLTRB method

EdgeInsetsGeometry getMarginLTRB(
  1. double left,
  2. double top,
  3. double right,
  4. double bottom,
)

Returns the dynamic margin sizes for the left, top, right, bottom percentages provided.

Implementation

EdgeInsetsGeometry getMarginLTRB(
  double left,
  double top,
  double right,
  double bottom,
) =>
    EdgeInsets.fromLTRB(
      getWidth(left),
      getHeight(top),
      getWidth(right),
      getHeight(bottom),
    );