logout method

Future<void> logout(
  1. BuildContext context
)

Implementation

Future<void> logout(BuildContext context) async {
  final state = globalKey.currentState;
  if (state != null) {
    await state.logout(context);
  }
}