align method Null safety

Rectangle<int> align()

Implementation

Rectangle<int> align() {
  final rLeft = left.floor();
  final rTop = top.floor();
  final rRight = right.ceil();
  final rBottom = bottom.ceil();
  return Rectangle<int>(rLeft, rTop, rRight - rLeft, rBottom - rTop);
}