nc-photos/app/lib/bloc/bloc_util.dart

8 lines
421 B
Dart
Raw Normal View History

2022-01-27 11:02:45 +01:00
import 'package:nc_photos/account.dart';
String getInstNameForAccount(String className, Account account) =>
"$className(${account.scheme}://${account.username.toCaseInsensitiveString()}@${account.address})";
2022-01-27 11:02:45 +01:00
String getInstNameForRootAwareAccount(String className, Account account) =>
"$className(${account.scheme}://${account.username.toCaseInsensitiveString()}@${account.address}?${account.roots.join('&')})";