init function

Future init(
  1. dynamic type
)

Implementation

Future init(type) async{

  var uuid = '';
  type == Types.users ? uuid = Storage.userUUID : uuid = Storage.deviceUUID;

  await Storage.controller!.add(NodeImpl(':$type:' + uuid + ':' +Storage.geigerIndicatorUUID,''));
  await Storage.controller!.add(NodeImpl('data', '', ':$type:' + uuid + ':' + Storage.geigerIndicatorUUID));

}