toFlutter method
Implementation
@override
EdgeInsets toFlutter(AnyWidgetContext context) {
return map(
all: (value) => EdgeInsets.all(value.value),
symmetric: (value) => EdgeInsets.symmetric(
vertical: value.vertical ?? 0.0,
horizontal: value.horizontal ?? 0.0,
),
only: (value) => EdgeInsets.only(
left: value.left ?? 0.0,
top: value.top ?? 0.0,
right: value.right ?? 0.0,
bottom: value.bottom ?? 0.0,
),
);
}