resolve method
Implementation
@override
BorderRadiusGeometry resolve(MixData mix) {
Radius getRadiusValue(Radius? radius) {
if (radius == null) return Radius.zero;
return radius is RadiusRef ? mix.tokens.radiiRef(radius) : radius;
}
return isDirectional
? BorderRadiusDirectional.only(
topStart: getRadiusValue(topStart),
topEnd: getRadiusValue(topEnd),
bottomStart: getRadiusValue(bottomStart),
bottomEnd: getRadiusValue(bottomEnd),
)
: BorderRadius.only(
topLeft: getRadiusValue(topLeft),
topRight: getRadiusValue(topRight),
bottomLeft: getRadiusValue(bottomLeft),
bottomRight: getRadiusValue(bottomRight),
);
}