resolve method
Resolves directional spacing to absolute spacing based on text direction.
In LTR text: start = left, end = right In RTL text: start = right, end = left
Implementation
@override
EdgeSpacing resolve(LayoutTextDirection direction) {
if (direction == LayoutTextDirection.ltr) {
return EdgeSpacing.only(
left: start,
top: top,
right: end,
bottom: bottom,
);
} else {
return EdgeSpacing.only(
left: end,
top: top,
right: start,
bottom: bottom,
);
}
}