getMarginByWidth method

EdgeInsetsGeometry getMarginByWidth(
  1. double width
)

Returns the dynamic margin size for the width percentage provided.

Implementation

EdgeInsetsGeometry getMarginByWidth(
  double width,
) =>
    EdgeInsets.fromLTRB(
      getHeight(width),
      getHeight(width),
      getHeight(width),
      getHeight(width),
    );