cleanImageCache method Null safety

Future<bool> cleanImageCache()

Returns whether clean success

Implementation

static Future<bool> cleanImageCache() async {
  if (workOnImages) {
    stopWoringOnImages = true;
  }

  final String result = await _channel.invokeMethod('cleanImageCache');
  if (result == "success") {
    return true;
  }
  return false;
}