BoxDecorationExtension extension
An extension on BoxDecoration to provide additional utility methods.
This extension adds a isCircle getter to check if the shape of the BoxDecoration is a circle.
Example usage:
void main() {
final decoration = const BoxDecoration(shape: BoxShape.circle);
assert(decoration.isCircle);
final anotherDecoration = const BoxDecoration(shape: BoxShape.rectangle);
assert(!anotherDecoration.isCircle);
}
- on
Properties
- isCircle → bool
-
Available on BoxDecoration?, provided by the BoxDecorationExtension extension
Returnstrueif the shape of the BoxDecoration is a circle.no setter