edgeInsetsMap top-level property

Map<String, Function> edgeInsetsMap
final

Implementation

final edgeInsetsMap = {
  "all": (Object value) {
    return EdgeInsets.all(parseDouble(value) ?? 0);
  },
  "fromLTRB": (Object left, Object top, Object right, Object bottom) {
    return EdgeInsets.fromLTRB(parseDouble(left) ?? 0, parseDouble(top) ?? 0,
        parseDouble(right) ?? 0, parseDouble(bottom) ?? 0);
  },
  "only": ({Object? left, Object? top, Object? right, Object? bottom}) {
    return EdgeInsets.only(
        left: parseDouble(left) ?? 0,
        top: parseDouble(top) ?? 0,
        right: parseDouble(right) ?? 0,
        bottom: parseDouble(bottom) ?? 0);
  },
  "symmetric": ({Object? horizontal, Object? vertical}) {
    return EdgeInsets.symmetric(
        horizontal: parseDouble(horizontal) ?? 0,
        vertical: parseDouble(vertical) ?? 0);
  }
};