instance property

CastKeepAlive get instance

This platform's keep-alive, made on first use: the plugin's own (MethodChannelCastKeepAlive) on Android, iOS and Windows, and UnsupportedCastKeepAlive on Linux and macOS, which have no native side. Set it to use another (a fake in tests).

Implementation

static CastKeepAlive get instance =>
    _instance ??= MethodChannelCastKeepAlive();
set instance (CastKeepAlive value)

Implementation

static set instance(CastKeepAlive value) => _instance = value;