NumberFieldBloc class

Inheritance

Constructors

NumberFieldBloc({String? name, int? initialValue, bool enabled = true, bool readOnly = false, bool? required, Set<Validator<int?>>? customValidators, Set<ValidationType> rules = const {}, bool loading = false, dynamic data, dynamic extraData})

Properties

data ↔ dynamic
getter/setter pairinherited
defaultValue int?
finalinherited
disabled bool
no setterinherited
displayError String?
no setterinherited
enabled bool
getter/setter pairinherited
error String?
no setterinherited
extraData ↔ dynamic
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
initialValue int?
no setterinherited
isClosed bool
Whether the bloc is closed.
no setterinherited
isInitial bool
no setterinherited
isLoading bool
no setterinherited
isNotValid bool
no setterinherited
isRequired bool
no setterinherited
isValid bool
no setterinherited
isValueChanged bool
no setterinherited
loading bool
no getterinherited
name String
no setterinherited
readOnly bool
getter/setter pairinherited
required bool
no getterinherited
rules Set<ValidationType>
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state InputFieldBlocState<int?>
The current state.
no setterinherited
stream Stream<InputFieldBlocState<int?>>
The current stream of states.
no setterinherited
validators Set<Validator<int?>>
no setterinherited
value int?
getter/setter pairinherited
valueStream Stream<int?>
getter/setter pairinherited

Methods

addError(Object error, [StackTrace? stackTrace]) → void
Reports an error which triggers onError with an optional StackTrace.
inherited
addFieldError(String error, {bool? isDirty}) → void
It is useful when you want to add errors that you have obtained when submitting the FormBloc.
inherited
addRule(ValidationType rule) → void
inherited
addRules(Set<ValidationType> rules) → void
inherited
addValidator(Validator<int?> validator, {bool forceValidation = false}) → void
inherited
addValidators(Set<Validator<int?>> validators, {bool forceValidation = false}) → void
inherited
changeAvailability(bool enabled) → void
inherited
changeData(dynamic data) → void
inherited
changeExtraData(dynamic extraData) → void
inherited
changeLoading(bool loading) → void
inherited
changeReadOnly(bool readOnly) → void
inherited
changeRequirement(bool required, {bool forceValidation = false}) → void
inherited
changeRules(Set<ValidationType> rules) → void
inherited
changeValidators(Set<Validator<int?>> validators, {bool forceValidation = false}) → void
inherited
changeValue(int? value, {bool forceChange = false}) → void
inherited
clear({bool force = false}) → void
inherited
clearRules() → void
inherited
clearValidators() → void
inherited
close() Future<void>
Closes the instance. This method should be called when the instance is no longer needed. Once close is called, the instance can no longer be used.
inherited
emit(InputFieldBlocState<int?> state) → void
Updates the state to the provided state. emit does nothing if the state being emitted is equal to the current state.
inherited
focusChanged() → void
inherited
getError(int? value, {Set<String? Function(int?)>? newValidators}) String?
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onChange(Change<InputFieldBlocState<int?>> change) → void
Called whenever a change occurs with the given change. A change occurs when a new state is emitted. onChange is called before the state of the cubit is updated. onChange is a great spot to add logging/analytics for a specific cubit.
inherited
onError(Object error, StackTrace stackTrace) → void
Called whenever an error occurs and notifies BlocObserver.onError.
inherited
removeFormBloc(FormBloc formBloc) → void
inherited
removeRule(ValidationType rule) → void
inherited
removeRules(Set<ValidationType> rules) → void
inherited
removeValidator(Validator<int?> validator, {bool forceValidation = false}) → void
inherited
removeValidators(Set<Validator<int?>> validators, {bool forceValidation = false}) → void
inherited
reset({bool force = false}) → void
inherited
toNullableString() String?
inherited
toString() String
A string representation of this object.
inherited
updateFormBloc(FormBloc formBloc) → void
inherited
updateInitial(int? value, {bool forceChange = false}) → void
inherited
validate() bool
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited