install static method

Installs this fake as the active ImagePickerPlatform.instance.

Returns the installed instance so callers can reconfigure it if needed (e.g. set imageToReturn to null to simulate cancellation).

Implementation

static FakeImagePickerPlatform install() {
  final fake = FakeImagePickerPlatform();
  ImagePickerPlatform.instance = fake;
  return fake;
}