GetConsumer<S> constructor
const
GetConsumer<S> ({
- required GetWidgetBuilder<
S> builder, - required GetListener<
S> listener, - Rx<
S> ? rx, - dynamic controller,
- GetCondition<
S> ? listenWhen, - GetCondition<
S> ? buildWhen, - Key? key,
Implementation
const GetConsumer({
required this.builder,
required this.listener,
this.rx,
this.controller,
this.listenWhen,
this.buildWhen,
super.key,
}) : assert(
(rx != null) ^ (controller != null),
'Provide either rx or controller, but not both',
);