selfprivacy.org.app/lib/utils/ui_helpers.dart

10 lines
323 B
Dart
Raw Normal View History

2021-03-26 13:38:39 +00:00
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';
}