selfprivacy.org.app/lib/utils/ui_helpers.dart
2021-12-06 18:31:19 +00:00

10 lines
322 B
Dart

import 'package:selfprivacy/logic/cubit/app_config/app_config_cubit.dart';
/// it's ui helpers use only for ui components, don't use for logic components.
class UiHelpers {
static String getDomainName(AppConfigState config) => config.isDomainFilled
? config.cloudFlareDomain!.domainName
: 'example.com';
}