create static method

Future<BlePeripheral> create()

Creates and returns a singleton instance of a BlePeripheral.

Implementation

static Future<BlePeripheral> create() async {
  final peripheral = BlePeripheral._create();
  await peripheral.reset();
  return peripheral;
}