withSide method

  1. @override
SceneCorners withSide(
  1. int index,
  2. double value
)
override

Implementation

@override
SceneCorners withSide(int index, double value) => switch (index) {
  0 => copyWith(topLeft: value),
  1 => copyWith(topRight: value),
  2 => copyWith(bottomRight: value),
  _ => copyWith(bottomLeft: value),
};