getMargin method

EdgeInsetsGeometry getMargin(
  1. double height,
  2. double width
)

Returns the dynamic margin size for the height and width percentages provided.

Implementation

EdgeInsetsGeometry getMargin(
  double height,
  double width,
) =>
    EdgeInsets.fromLTRB(
      getWidth(width),
      getHeight(height),
      getWidth(width),
      getHeight(height),
    );