1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-04-09 09:11:39 +02:00
nc-photos/app/lib/bloc/bloc_util.dart

7 lines
417 B
Dart

import 'package:nc_photos/account.dart';
String getInstNameForAccount(String className, Account account) =>
"$className(${account.scheme}://${account.userId.toCaseInsensitiveString()}@${account.address})";
String getInstNameForRootAwareAccount(String className, Account account) =>
"$className(${account.scheme}://${account.userId.toCaseInsensitiveString()}@${account.address}?${account.roots.join('&')})";