error method
void
error({})
실패(에러) 효과를 적용합니다.
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);
}