channel property Null safety

T channel

The ApplicationChannel handling requests while under test.

This property is only valid when an application is started via startOnCurrentIsolate. You use this value to access elements of your application channel during testing.

Implementation

T get channel => server.channel as T;