PatternView constructor

const PatternView({
  1. Key? key,
  2. int matrixX = 3,
  3. int matrixY = 3,
  4. PatternState state = PatternState.active,
  5. double? tapRange,
  6. required VoidCallback onStart,
  7. required void onUpdate(
    1. List<int> value
    ),
  8. required void onEnd(
    1. List<int> value
    ),
  9. required List<int> value,
})

Implementation

const PatternView({
  super.key,
  this.matrixX = 3,
  this.matrixY = 3,
  this.state = PatternState.active,
  this.tapRange,
  required this.onStart,
  required this.onUpdate,
  required this.onEnd,
  required this.value,
}) : assert(
        value.length <= (matrixX * matrixY),
        'value length must less than matrixX * matrixY',
      );