copyWith method
- ConnectionType? connectionType,
- InternetStatus? internetStatus,
Returns a copy of this InternetConnected state with the given fields replaced.
Implementation
InternetConnected copyWith({ConnectionType? connectionType, InternetStatus? internetStatus}) {
return InternetConnected(connectionType: connectionType ?? this.connectionType, internetStatus: internetStatus ?? this.internetStatus);
}