isFeatureEnabled method

bool isFeatureEnabled(
  1. FastAppFeatures appFeature
)

Implementation

bool isFeatureEnabled(FastAppFeatures appFeature) {
  final name = appFeature.name.toLowerCase();
  final feature = features.firstWhereOrNull(
    (FastFeatureEntity model) => model.name.toLowerCase() == name,
  );

  return feature != null ? feature.isEnabled : false;
}