configDeleteBehavior method Null safety

void configDeleteBehavior(
  1. {bool? linger,
  2. double? timeout}
)

Configure delete behaviour for this object.

Implementation

void configDeleteBehavior({bool? linger, double? timeout}) {
  synthizer.synthizer
      .syz_initDeleteBehaviorConfig(synthizer.deleteBehaviorConfigPointer);
  if (linger != null) {
    synthizer.deleteBehaviorConfigPointer.ref.linger = linger == true ? 1 : 0;
  }
  if (timeout != null) {
    synthizer.deleteBehaviorConfigPointer.ref.linger_timeout = timeout;
  }
  synthizer.check(synthizer.synthizer.syz_configDeleteBehavior(
      handle.value, synthizer.deleteBehaviorConfigPointer));
}