MouseCursorSession constructor Null safety

MouseCursorSession(
  1. MouseCursor cursor,
  2. int device
)

Create a session.

All arguments must be non-null.

Implementation

MouseCursorSession(this.cursor, this.device)
  : assert(cursor != null),
    assert(device != null);