fromAddDefaultShareMenuItem method Null safety

CustomTabsShareState? fromAddDefaultShareMenuItem(
  1. {bool? addDefaultShareMenuItem}
)

Implementation

static CustomTabsShareState? fromAddDefaultShareMenuItem(
    {bool? addDefaultShareMenuItem}) {
  if (addDefaultShareMenuItem != null) {
    if (addDefaultShareMenuItem) {
      return CustomTabsShareState.on;
    } else {
      return CustomTabsShareState.off;
    }
  }

  return null;
}