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

9 lines
339 B
Dart
Raw Normal View History

import 'package:selfprivacy/logic/cubit/server_installation/server_installation_cubit.dart';
2021-03-26 13:38:39 +00:00
2021-12-06 18:31:19 +00:00
/// it's ui helpers use only for ui components, don't use for logic components.
2021-03-26 13:38:39 +00:00
class UiHelpers {
static String getDomainName(ServerInstallationState config) =>
config.isDomainFilled ? config.serverDomain!.domainName : 'example.com';
2021-03-26 13:38:39 +00:00
}