formatStorage static method

Future formatStorage({
  1. required String deviceSerial,
  2. int? index,
})

根据分区编号格式化

Implementation

static Future formatStorage({
  required String deviceSerial,
  int? index,
}) async {
  return await _channel.invokeMethod("format_storage", {
    'deviceSerial': deviceSerial,
    'partitionIndex': index,
  });
}