addCallback method Null safety

void addCallback(
  1. dynamic callBack(
    1. String
    )
)

添加报错回调

Implementation

void addCallback(Function(String) callBack) {
  this.callBack = callBack;
}