createSimpleFaceMessage static method

dynamic createSimpleFaceMessage({
  1. required int index,
  2. required String data,
})

Implementation

static createSimpleFaceMessage({
  required int index,
  required String data,
}) {
  return {
    "elemType": 8,
    "type": "face",
    "faceElem": {
      "index": index,
      "data": data,
    }
  };
}