PurchasesBlocConfig class
Constructors
- PurchasesBlocConfig({UserReferenceMapper? userReferenceMapper, VerificationParamBuilder? verificationParamBuilder, bool autoInitialize = false, bool logEvents = false, bool logFilter(PurchasesEvent event)?, String customLogOutput(PurchasesEvent event)?, Duration verifyDebounced = const Duration(seconds: 3), Duration transactionCompleteDebounced = const Duration(seconds: 3), Logger? logger})
-
const
Properties
- autoInitialize → bool
-
If true, the bloc will automatically kick initialization event when instantiated
defaults to
truefinal - customLogOutput → String Function(PurchasesEvent event)?
-
Customize how events are outputted on the logger
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- logEvents → bool
-
If you want to log events of bloc for debugging purposes
final
- logFilter → bool Function(PurchasesEvent event)?
-
final
- logger → Logger?
-
Logger to be used on the bloc
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- transactionCompleteDebounced → Duration
-
final
- userReferenceMapper → UserReferenceMapper?
-
Provides a callback to be used in order to obtain user a reference to the user
this is provided to the purchase so it's liked to the user
it's preferable to return the user id
final
- verificationParamBuilder → VerificationParamBuilder?
-
This callback will be executed every time the user fetch new notifications
This is useful to provide a custom way to pass any data required in order to filter user's
notification, some time backend requires the user to pass the ID,
This would be the way to do it
final
- verifyDebounced → Duration
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited