startFlexibleUpdateAndroid method
Android: Starts the flexible (background download) update flow.
The update downloads in the background while the user continues using the app. Listen to installStateStreamAndroid for download progress, and call completeUpdateAndroid when the download is complete.
If allowAssetPackDeletion is true, the system may delete asset packs
to free up storage for the update.
Implementation
Future<UpdateResultAndroid> startFlexibleUpdateAndroid({
bool allowAssetPackDeletion = false,
}) {
return InAppUpdateFlutterPlatform.instance.startFlexibleUpdateAndroid(
allowAssetPackDeletion: allowAssetPackDeletion,
);
}