setListener method

void setListener({
  1. void onSignStart()?,
  2. void onSignEnd()?,
  3. void onSignCancel()?,
  4. void onNewStroke()?,
  5. void onSignCoordinate(
    1. double x,
    2. double y
    )?,
  6. void onSignMeta(
    1. String model,
    2. String version,
    3. String protocolVersion
    )?,
})

Implementation

void setListener({
  void Function()? onSignStart,
  void Function()? onSignEnd,
  void Function()? onSignCancel,
  void Function()? onNewStroke,
  void Function(double x, double y)? onSignCoordinate,
  void Function(String model, String version, String protocolVersion)?
      onSignMeta,
}) {
  EasyscriptPlatform.instance.setListener(
    onSignCoordinate: onSignCoordinate,
    onSignStart: onSignStart,
    onSignEnd: onSignEnd,
    onSignCancel: onSignCancel,
    onNewStroke: onNewStroke,
    onSignMeta: onSignMeta,
  );
}