isCancelledById method

  1. @override
bool? isCancelledById(
  1. int handleId
)
override

Check if cancelled by registry ID. Returns null if handle not found, true if cancelled, false if not.

Implementation

@override
bool? isCancelledById(int handleId) {
  final result = ffi_native.monty_is_cancelled_by_id(handleId);
  if (result == -1) return null; // not found
  return result == 1;
}