selectSpace method

void selectSpace(
  1. dynamic context,
  2. 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;
}