only method

  1. @override
T only({
  1. AlignmentGeometry? alignment,
  2. SpacingDto? padding,
  3. SpacingDto? margin,
  4. DecorationDto<Decoration>? decoration,
  5. DecorationDto<Decoration>? foregroundDecoration,
  6. BoxConstraintsDto? constraints,
  7. double? width,
  8. double? height,
  9. Matrix4? transform,
  10. Clip? clipBehavior,
  11. 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,
    ),
  );
}