Stone constructor Null safety

Stone(
  1. {required int id,
  2. required Widget child,
  3. required int width,
  4. required int height}
)

Implementation

Stone(
    {required int id,
    required Widget child,
    required this.width,
    required this.height})
    : assert(width > 0),
      assert(height > 0),
      super(child: child, id: id);