copyWith method

SnakeShape copyWith({
  1. ShapeBorder? shape,
  2. bool? centered,
  3. EdgeInsets? padding,
})

Implementation

SnakeShape copyWith({
  ShapeBorder? shape,
  bool? centered,
  EdgeInsets? padding,
}) {
  return SnakeShape._(
    shape: shape ?? this.shape,
    type: type,
    centered: centered ?? this.centered,
    padding: padding ?? this.padding,
  );
}