copyWith method
AuthState
copyWith({
- bool? isAuthenticated,
- Map<
String, dynamic> ? employee, - 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,
);
}