MatrixColumn constructor

MatrixColumn({
  1. required double x,
  2. required double speed,
  3. required String chars,
  4. required int length,
  5. required double screenHeight,
})

Creates a MatrixColumn.

x is the horizontal position. speed determines how fast the column falls. chars is the string of available characters. length is the number of characters in the trail. screenHeight is the height of the canvas.

Implementation

MatrixColumn({
  required this.x,
  required this.speed,
  required this.chars,
  required this.length,
  required this.screenHeight,
}) : y = -length * 15.0 {
  _generateCharacters();
}