toDto method
Implementation
ShapeBorderDto toDto() {
if (this is RoundedRectangleBorder) {
return (this as RoundedRectangleBorder).toDto();
} else if (this is BeveledRectangleBorder) {
return (this as BeveledRectangleBorder).toDto();
} else if (this is ContinuousRectangleBorder) {
return (this as ContinuousRectangleBorder).toDto();
} else if (this is CircleBorder) {
return (this as CircleBorder).toDto();
} else if (this is StadiumBorder) {
return (this as StadiumBorder).toDto();
}
throw ArgumentError.value(
this,
'shapeBorder',
'ShapeBorder type is not supported',
);
}