copyWith method

InternetConnected copyWith({
  1. ConnectionType? connectionType,
  2. 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);
}