TextAlignVertical constructor Null safety

const TextAlignVertical(
  1. {required double y}
)

Creates a TextAlignVertical from any y value between -1.0 and 1.0.

Implementation

const TextAlignVertical({
  required this.y,
}) : assert(y != null),
     assert(y >= -1.0 && y <= 1.0);