selectSpace method
- dynamic context,
- dynamic ref
Implementation
void selectSpace(BuildContext context, WidgetRef ref) async {
final newSelectedSpaceId = await selectSpaceDrawer(
context: context,
currentSpaceId: ref.read(selectedSpaceIdProvider),
canCheck: canCheck,
title: Text(selectTitle ?? L10n.of(context).selectSpace),
);
ref.read(selectedSpaceIdProvider.notifier).state = newSelectedSpaceId;
}