setHole method

dynamic setHole(
  1. AntdMaskHole? targetHole, [
  2. AntdMaskHole? initHole
])

Implementation

setHole(AntdMaskHole? targetHole, [AntdMaskHole? initHole]) {
  if (targetHole == null && initHole == null) {
    return;
  }
  if (initHole != null) {
    hole = initHole;
  }

  this.targetHole = targetHole ?? AntdMaskHole.zero;
  controller?.reset();
  controller?.forward();
  setState(() {});
}