change method

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

Implementation

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