addDetailCallback method Null safety

void addDetailCallback(
  1. dynamic callBack(
    1. String method,
    2. String key,
    3. Map? map
    )
)

添加报错回调,详细的解析方式跟map

Implementation

void addDetailCallback(
    Function(String method, String key, Map? map) callBack) {
  this.detailCallBack = callBack;
}