pluginConstants property Null safety

Map pluginConstants

Returns any plugin constants this plugin app instance has initialized.

Implementation

Map<dynamic, dynamic> get pluginConstants {
  if (_constantsForPluginApps[_appName] != null &&
      _constantsForPluginApps[_appName][_methodChannelName] != null) {
    return _constantsForPluginApps[_appName][_methodChannelName];
  }

  return {};
}