only method

  1. @override
T only({
  1. ColorDto? color,
  2. Offset? offset,
  3. double? blurRadius,
  4. double? spreadRadius,
})
override

Creates a new Attribute with the specified properties.

Any properties not specified will be set to their default values.

Implementation

@override
T only({
  ColorDto? color,
  Offset? offset,
  double? blurRadius,
  double? spreadRadius,
}) {
  return builder(
    BoxShadowDto(
      color: color,
      offset: offset,
      blurRadius: blurRadius,
      spreadRadius: spreadRadius,
    ),
  );
}