only method
T
only({
- AlignmentGeometry? alignment,
- SpacingDto? padding,
- SpacingDto? margin,
- DecorationDto<
Decoration> ? decoration, - DecorationDto<
Decoration> ? foregroundDecoration, - BoxConstraintsDto? constraints,
- double? width,
- double? height,
- Matrix4? transform,
- Clip? clipBehavior,
- AnimatedDataDto? animated,
override
Returns a new BoxSpecAttribute with the specified properties.
Implementation
@override
T only({
AlignmentGeometry? alignment,
SpacingDto? padding,
SpacingDto? margin,
DecorationDto? decoration,
DecorationDto? foregroundDecoration,
BoxConstraintsDto? constraints,
double? width,
double? height,
Matrix4? transform,
Clip? clipBehavior,
AnimatedDataDto? animated,
}) {
return builder(
BoxSpecAttribute(
alignment: alignment,
padding: padding,
margin: margin,
constraints: constraints,
decoration: decoration,
foregroundDecoration: foregroundDecoration,
transform: transform,
clipBehavior: clipBehavior,
width: width,
height: height,
animated: animated,
),
);
}