StacClipOval class
A Stac model representing Flutter's ClipOval
widget.
Clips its child using an oval (or circle if the bounds are a square).
{@tool snippet} Dart Example:
StacClipOval(
clipBehavior: StacClip.antiAlias,
child: StacContainer(color: '#2196F3'),
)
{@end-tool}
{@tool snippet} JSON Example:
{
"type": "clipOval",
"clipBehavior": "antiAlias",
"child": {"type": "container", "color": "#2196F3"}
}
{@end-tool}
See also:
- Flutter's ClipOval documentation (
https://api.flutter.dev/flutter/widgets/ClipOval-class.html
)
- Inheritance
-
- Object
- StacElement
- StacWidget
- StacClipOval
- Annotations
-
- @JsonSerializable(explicitToJson: true)
Constructors
- StacClipOval.new({StacClip? clipBehavior, StacWidget? child})
-
Creates a StacClipOval.
const
-
StacClipOval.fromJson(Map<
String, dynamic> json) -
Creates a StacClipOval from a JSON map.
factory
Properties
- child → StacWidget?
-
The widget to be clipped by the oval.
final
- clipBehavior → StacClip?
-
The clipping behavior to use.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
jsonData
→ Map<
String, dynamic> ? -
Raw JSON data for this widget
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → String
-
Widget type identifier.
no setteroverride
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
Converts this StacClipOval instance to a JSON map.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited