change method

  1. @override
Failure<V, E> change({
  1. E? wrapped,
  2. Type? classLocation,
  3. String? functionLocation,
  4. Map<String, dynamic>? monitor,
  5. Map<String, dynamic>? debug,
  6. Iterable<Log>? histories,
})
override

Implementation

@override
Failure<V, E> change({
    E? wrapped,
    Type? classLocation,
    String? functionLocation,
    Map<String, dynamic>? monitor,
    Map<String, dynamic>? debug,
    Iterable<Log>? histories,
}) {
    return Failure._(
        wrapped ?? this.wrapped,
        classLocation == null ? this.classLocation : classLocation.toString() ,
        functionLocation ?? this.functionLocation,
        monitor ?? this.monitor,
        debug ?? this.debug,
        histories == null ? this.historyList : HistoryList.fromLogs(histories),
    );
}