copyWith method

NotifyBleStateEntity copyWith({
  1. bool? success,
  2. String? message,
  3. String? data,
  4. String? dataType,
})

Implementation

NotifyBleStateEntity copyWith({
  bool? success,
  String? message,
  String? data,
  String? dataType,
}) {
  return NotifyBleStateEntity()
    ..success = success ?? this.success
    ..message = message ?? this.message
    ..data = data ?? this.data
    ..dataType = dataType ?? this.dataType;
}