info property Null safety

LineInfo info

Returns the line info for this line.

Will return a LineInfo synchronously when requested == true and no request / reconfiguration / release is going on right now. Otherwise, returns a Future<LineInfo>.

Implementation

LineInfo get info {
  if (/*_mutex.isWriteLocked == false &&*/ _info != null) {
    return _info as LineInfo;
  }

  return _ProxyGpiodPlatformSide.getLineInfo(_lineHandle);
}