resolve static method

EdgeInsets resolve(
  1. BuildContext context,
  2. TwStyle style
)

Resolves padding from TwStyle and TwTheme into EdgeInsets

Implementation

static EdgeInsets resolve(BuildContext context, TwStyle style) {
  return TwSpacing.resolve(
    context,
    style,
    getUniform: (s) => s.p,
    getX: (s) => s.px,
    getY: (s) => s.py,
    getLeft: (s) => s.pl,
    getRight: (s) => s.pr,
    getTop: (s) => s.pt,
    getBottom: (s) => s.pb,
  );
}