hasConnection property Null safety

bool hasConnection

Returns true if there is open input connection.

Implementation

bool get hasConnection =>
    _textInputConnection != null && _textInputConnection!.attached;