selfprivacy.org.app/lib/utils/ui_helpers.dart
NaiJi 4a42733d31 Refactor infrastructure: cubits and endpoints
Co-authored-by: Inex Code <inex.code@selfprivacy.org>
2022-05-13 16:57:56 +03:00

9 lines
312 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.serverDomain!.domainName : 'example.com';
}