reLogin method Null safety

Future<bool> reLogin(
  1. GeneralCallback<GeneralResponse> callback
)

Implementation

Future<bool> reLogin(GeneralCallback<GeneralResponse> callback) async {
  final AnnouncementLoginData? loginData = await login(
    username: username,
    password: password,
    callback: GeneralCallback<AnnouncementLoginData>(
      onSuccess: (AnnouncementLoginData loginData) => AnnouncementLoginData,
      onFailure: callback.onFailure,
      onError: callback.onError,
    ),
  );
  return loginData != null;
}