Unverified Commit 6a443138 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

fix `unnecessary_null_checks` (#102705)

parent b1f88a65
...@@ -449,11 +449,11 @@ class WindowsPlugin extends PluginPlatform ...@@ -449,11 +449,11 @@ class WindowsPlugin extends PluginPlatform
Map<String, dynamic> toMap() { Map<String, dynamic> toMap() {
return <String, dynamic>{ return <String, dynamic>{
'name': name, 'name': name,
if (pluginClass != null) 'class': pluginClass!, if (pluginClass != null) 'class': pluginClass,
if (pluginClass != null) 'filename': _filenameForCppClass(pluginClass!), if (pluginClass != null) 'filename': _filenameForCppClass(pluginClass!),
if (dartPluginClass != null) kDartPluginClass: dartPluginClass!, if (dartPluginClass != null) kDartPluginClass: dartPluginClass,
if (ffiPlugin) kFfiPlugin: true, if (ffiPlugin) kFfiPlugin: true,
if (defaultPackage != null) kDefaultPackage: defaultPackage!, if (defaultPackage != null) kDefaultPackage: defaultPackage,
}; };
} }
} }
...@@ -519,11 +519,11 @@ class LinuxPlugin extends PluginPlatform implements NativeOrDartPlugin { ...@@ -519,11 +519,11 @@ class LinuxPlugin extends PluginPlatform implements NativeOrDartPlugin {
Map<String, dynamic> toMap() { Map<String, dynamic> toMap() {
return <String, dynamic>{ return <String, dynamic>{
'name': name, 'name': name,
if (pluginClass != null) 'class': pluginClass!, if (pluginClass != null) 'class': pluginClass,
if (pluginClass != null) 'filename': _filenameForCppClass(pluginClass!), if (pluginClass != null) 'filename': _filenameForCppClass(pluginClass!),
if (dartPluginClass != null) kDartPluginClass: dartPluginClass!, if (dartPluginClass != null) kDartPluginClass: dartPluginClass,
if (ffiPlugin) kFfiPlugin: true, if (ffiPlugin) kFfiPlugin: true,
if (defaultPackage != null) kDefaultPackage: defaultPackage!, if (defaultPackage != null) kDefaultPackage: defaultPackage,
}; };
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment