error method

void error({
  1. bool clearOnError = true,
  2. Duration revertAfter = const Duration(milliseconds: 800),
  3. String? message,
})

실패(에러) 효과를 적용합니다.

Implementation

void error({
  bool clearOnError = true,
  Duration revertAfter = const Duration(milliseconds: 800),
  String? message,
}) {
  final req = PinInputEffectRequest.error(
    clearOnError: clearOnError,
    revertAfter: revertAfter,
    message: message,
  );
  if (_onEffect == null) {
    _pendingEffect = req;
    return;
  }
  _onEffect?.call(req);
}