flutter_credit_card_detector library

Classes

BodyWidget
ChangeNotifierProvider<T extends ChangeNotifier>
Listens to a ChangeNotifier, expose it to its descendants and rebuilds dependents whenever ChangeNotifier.notifyListeners is called. [...]
ChangeNotifierProxyProvider<T, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values. [...]
ChangeNotifierProxyProvider0<R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values. [...]
ChangeNotifierProxyProvider2<T, T2, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values. [...]
ChangeNotifierProxyProvider3<T, T2, T3, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values. [...]
ChangeNotifierProxyProvider4<T, T2, T3, T4, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values. [...]
ChangeNotifierProxyProvider5<T, T2, T3, T4, T5, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values. [...]
ChangeNotifierProxyProvider6<T, T2, T3, T4, T5, T6, R extends ChangeNotifier>
A ChangeNotifierProvider that builds and synchronizes a ChangeNotifier with external values. [...]
Consumer<T>
Obtains Provider<T> from its ancestors and passes its value to builder. [...]
Consumer2<A, B>
Obtains Provider<T> from its ancestors and passes its value to builder. [...]
Consumer3<A, B, C>
Obtains Provider<T> from its ancestors and passes its value to builder. [...]
Consumer4<A, B, C, D>
Obtains Provider<T> from its ancestors and passes its value to builder. [...]
Consumer5<A, B, C, D, E>
Obtains Provider<T> from its ancestors and passes its value to builder. [...]
Consumer6<A, B, C, D, E, F>
Obtains Provider<T> from its ancestors and passes its value to builder. [...]
Controller
ControllerBase
CreditCardController
CreditCardWidget
DeferredInheritedProvider<T, R>
An InheritedProvider where the object listened is not the object emitted. [...]
FutureProvider<T>
Listens to a Future and exposes its result to child and its descendants. [...]
InheritedContext<T>
A BuildContext associated to an InheritedProvider. [...]
InheritedProvider<T>
A generic implementation of an InheritedWidget. [...]
ListenableProvider<T extends Listenable>
Listens to a Listenable, expose it to its descendants and rebuilds dependents whenever the listener emits an event. [...]
ListenableProxyProvider<T, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider0<R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider2<T, T2, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider3<T, T2, T3, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider4<T, T2, T3, T4, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider5<T, T2, T3, T4, T5, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
ListenableProxyProvider6<T, T2, T3, T4, T5, T6, R extends Listenable>
A variation of ListenableProvider that builds its value from values obtained from other providers. [...]
MaskedTextController
MoneyMaskedTextController
Mask for monetary values.
MultiProvider
A provider that merges multiple providers into a single linear widget tree. It is used to improve readability and reduce boilerplate code of having to nest multiple layers of providers. [...]
Observer
A StatelessObserverWidget that delegate its build method to builder. [...]
Provider<T>
A Provider that manages the lifecycle of the value it provides by delegating to a pair of Create and Dispose. [...]
ProxyProvider<T, R>
A provider that builds a value based on other providers. [...]
ProxyProvider0<R>
A provider that builds a value based on other providers. [...]
ProxyProvider2<T, T2, R>
A provider that builds a value based on other providers. [...]
ProxyProvider3<T, T2, T3, R>
A provider that builds a value based on other providers. [...]
ProxyProvider4<T, T2, T3, T4, R>
A provider that builds a value based on other providers. [...]
ProxyProvider5<T, T2, T3, T4, T5, R>
A provider that builds a value based on other providers. [...]
ProxyProvider6<T, T2, T3, T4, T5, T6, R>
A provider that builds a value based on other providers. [...]
ReassembleHandler
If you need your provider to be notified when 'Hot Reload' occurs, use this class [...]
Selector<A, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector0<T>
A base class for custom Selector. [...]
Selector2<A, B, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector3<A, B, C, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector4<A, B, C, D, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector5<A, B, C, D, E, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
Selector6<A, B, C, D, E, F, S>
An equivalent to Consumer that can filter updates by selecting a limited amount of values and prevent rebuild if they don't change. [...]
StatefulObserverElement
An Element that uses a StatefulObserverWidget as its configuration.
StatefulObserverWidget
A StatefulWidget that rebuilds when an Observable used inside State.build updates. [...]
StatelessObserverElement
An Element that uses a StatelessObserverWidget as its configuration.
StatelessObserverWidget
A StatelessWidget that rebuilds when an Observable used inside build updates. [...]
StreamProvider<T>
Listens to a Stream and exposes its content to child and descendants. [...]
ValueListenableProvider<T>
Listens to a ValueListenable and expose its current value.

Mixins

ObserverElementMixin
A mixin that overrides build to listen to the observables used by ObserverWidgetMixin.
ObserverWidgetMixin
Observer observes the observables used in the build method and rebuilds the Widget whenever any of them change. There is no need to do any other wiring besides simply referencing the required observables. [...]

Extensions

ReadContext
Exposes the read method.
SelectContext
Adds a select method on BuildContext.
WatchContext
Exposes the watch method.

Constants

cardNumPatterns → const Map<CreditCardType, Set<List<String>>>
CC prefix patterns as of March 2019 A List<String> represents a range. i.e. '51', '55' represents the range of cards starting with '51' to those starting with '55'
const {CreditCardType.aura : const {const ['50']}, CreditCardType.visa : const {const ['4']}, CreditCardType.amex : const {const ['34'], const ['37']}, CreditCardType.d…
version → const String
The version as per pubspec.yaml
'1.1.0+2'

Properties

creditCardBand String
read / write
creditCardCPF String
read / write
creditCardCVV String
read / write
creditCardExpData String
read / write
creditCardName String
read / write
creditCardNumber String
read / write
debugAddStackTraceInObserverName bool
true if a stack frame indicating where an Observer was created should be included in its name. This is useful during debugging to identify the source of warnings or errors. [...]
read / write
formatterMM DateFormat
read / write
formatterYY DateFormat
read / write
listBand List<String>
read / write
month int
read / write
now DateTime
read / write
textCardExpired String
read / write
textIntroNameValid String
read / write
textInvalidateMonth String
read / write
textNameMin String
read / write
textRequired String
read / write
textSelectBand String
read / write
validateCpfVisibility bool
read / write
year int
read / write

Functions

detectCCType(String ccNumStr) CreditCardType
This function determines the CC type based on the cardPatterns
mediaQuery(BuildContext context, double value, {String direction}) → dynamic

Enums

CreditCardType

Typedefs

Create<T>(BuildContext context) → T
A function that creates an object of type T. [...]
DeferredStartListening<T, R>(InheritedContext<R> context, void setState(R value), T controller, R value) VoidCallback
A callback used to handle the subscription of controller. [...]
Dispose<T>(BuildContext context, T value) → void
A function that disposes an object of type T. [...]
ErrorBuilder<T>(BuildContext context, Object error) → T
A callback used to build a valid value from an error. [...]
Locator() → T
A generic function that can be called to read providers, without having a reference on BuildContext. [...]
ProviderBuilder<R>(BuildContext context, R value, Widget child) Widget
ProxyProviderBuilder<T, R>(BuildContext context, T value, R previous) → R
ProxyProviderBuilder2<T, T2, R>(BuildContext context, T value, T2 value2, R previous) → R
ProxyProviderBuilder3<T, T2, T3, R>(BuildContext context, T value, T2 value2, T3 value3, R previous) → R
ProxyProviderBuilder4<T, T2, T3, T4, R>(BuildContext context, T value, T2 value2, T3 value3, T4 value4, R previous) → R
ProxyProviderBuilder5<T, T2, T3, T4, T5, R>(BuildContext context, T value, T2 value2, T3 value3, T4 value4, T5 value5, R previous) → R
ProxyProviderBuilder6<T, T2, T3, T4, T5, T6, R>(BuildContext context, T value, T2 value2, T3 value3, T4 value4, T5 value5, T6 value6, R previous) → R
ShouldRebuild<T>(T previous, T next) bool
StartListening<T>(InheritedContext<T> element, T value) VoidCallback
A callback used to start the listening of an object and return a function that cancels the subscription. [...]
UpdateShouldNotify<T>(T previous, T current) bool
A function that returns true when the update from previous to current should notify listeners, if any. [...]

Exceptions / Errors

ProviderNotFoundException
The error that will be thrown if Provider.of fails to find a Provider as an ancestor of the BuildContext used.