copyWith method

AuthState copyWith({
  1. bool? isAuthenticated,
  2. Map<String, dynamic>? employee,
  3. ExternalApiClass? externalApi,
})

Implementation

AuthState copyWith({
  bool? isAuthenticated,
  Map<String, dynamic>? employee,
  ExternalApiClass? externalApi,
}) {
  return AuthState(
    isAuthenticated: isAuthenticated ?? this.isAuthenticated,
    employee: employee ?? this.employee,
    externalApi: externalApi ?? this.externalApi,
  );
}