mirrored_repositories/public-apis-mobile-client/lib/app/modules/controllers/home_controller
import '../../../../data/models/fab_model.dart';
import '../home_controller.dart';

extension FabHandler on HomeController {
  void switchAndUpdateFabDataTo(FabDirectionOption directionOption) {
    String key = _keyBasedOnEnum(directionOption);
    currentFabData = fabOptionsData[key]!;
    update([fabId]);
  }

  String _keyBasedOnEnum(FabDirectionOption enumValue) {
    return enumValue.name;
  }
}
