DelegatedRefCountHelper<T> constructor

DelegatedRefCountHelper<T>(
  1. T source, {
  2. void onCreate(
    1. T source
    )?,
  3. void onDispose(
    1. T source
    )?,
  4. bool autoDispose = true,
})

Implementation

DelegatedRefCountHelper(this.source,
    {void Function(T source)? onCreate,
    this.onDispose,
    this.autoDispose = true}) {
  onCreate?.call(source);
}