addError method

void addError(
  1. Object e$1, [
  2. StackTrace? st$1 = null
])
override

Adds an error to the sink.

Must not be called on a closed sink.

Implementation

void addError(dc.Object e$1, [dc.StackTrace? st$1 = null, ]){
final dc.List<dc.dynamic> fl$1=(dc.List<dc.dynamic>.filled(2, e$1, ));
fl$1[1]=st$1;
final lcoc_core.PersistentVector $2=lcoc_core.$_vec_owning(fl$1, );
late final dc.dynamic $if_$2;
if((error_rf$1 is dc.Function)){
$if_$2=(error_rf$1 as dc.Function)(null, $2, );
}else if((error_rf$1 is lcoc_core.IFn$iface)){
$if_$2=((error_rf$1 as lcoc_core.IFn$iface).$_invoke$2(null, $2, ));
}else{
$if_$2=(lcoc_core.IFn.extensions(error_rf$1, ).$_invoke$2(error_rf$1, null, $2, ));
}
final dc.bool $3=lcoc_core.reduced$QMARK_($if_$2, );
if($3){
return (this.close());
}
return null;
}