fetchAssetPackState method

  1. @override
Future<void> fetchAssetPackState(
  1. String assetPackName
)
override

Fetches the state of the specified asset pack.

This method retrieves the current state (e.g., downloading, completed) of the specified asset pack.

  • assetPackName: The name of the asset pack whose state is to be fetched.

If the operation fails, a message is logged but no exception is thrown.

Implementation

@override
Future<void> fetchAssetPackState(String assetPackName) async {
  try {
    await methodChannel
        .invokeMethod('fetchAssetPackState', {'assetPack': assetPackName});
  } on PlatformException catch (e) {
    debugPrint("Failed to fetch asset pack state: ${e.message}");
  }
}