size property

  1. @override
Future<Point<int>> get size
override

Retrieves the current dimensions (width and height) of the terminal.

Implementation

@override
Future<Point<int>> get size async {
  if (_flutterBackend.size != const Point(80, 24) ||
      _initialSizeCompleter.isCompleted) {
    return _flutterBackend.size;
  }
  return _initialSizeCompleter.future;
}