Gate constructor

Gate({
  1. required Component child,
  2. required FutureOr<Message> onRequest(
    1. Request request
    ),
})

Implementation

Gate(
    {required Component child,
    required FutureOr<Message> Function(Request request) onRequest})
    : _onRequest = onRequest,
      super(child: child);