HookCallback constructor

const HookCallback({
  1. required String name,
  2. required HookEventType event,
  3. required Future<HookResult> callback(
    1. Map<String, dynamic> context
    ),
  4. Duration? timeout,
  5. bool internal = false,
})

Implementation

const HookCallback({
  required this.name,
  required this.event,
  required this.callback,
  this.timeout,
  this.internal = false,
});