showCursor property Null safety

ValueNotifier<bool> showCursor

Whether to paint the cursor.

Implementation

ValueNotifier<bool> get showCursor => _showCursor;
void showCursor=(ValueNotifier<bool> value)

Implementation

set showCursor(ValueNotifier<bool> value) {
  assert(value != null);
  if (_showCursor == value)
    return;
  if (attached)
    _showCursor.removeListener(_showHideCursor);
  _showCursor = value;
  if (attached) {
    _showHideCursor();
    _showCursor.addListener(_showHideCursor);
  }
}