install static method

FakeRadioPlayer install()

Registers a new fake as the platform and resets FlutterRadioPlayer.instance to idle. Call it at the start of every test; the singleton object stays the same.

Implementation

static FakeRadioPlayer install() {
  final fake = FakeRadioPlayer._();
  FlutterRadioPlayerPlatform.instance = fake;
  resetFlutterRadioPlayer();
  return fake;
}