OtaCallback constructor

OtaCallback({
  1. required void onSuccess(
    1. int code,
    2. String msg
    ),
  2. required void onError(
    1. int code,
    2. String msg
    ),
  3. required OnOtaProgress onProgress,
})

Implementation

OtaCallback({required this.onSuccess, required this.onError, required this.onProgress});