hasAdaptiveIcon static method
Checks if the application has an AdaptiveIcon as app icon. On platform other than Android this returns false. On Android SDK levels smaller than API Level 26 (https://developer.android.com/about/versions/oreo/android-8.0) this returns false.
Implementation
static Future<bool> hasAdaptiveIcon() async {
if (Platform.isAndroid) {
final bool hasAdaptiveIcon =
await _channel.invokeMethod('hasAdaptiveIcon');
return hasAdaptiveIcon;
} else {
return false;
}
}