adeptutils
library
Classes
AdeptController <T >
AdeptDateTime
Created by Luis on 09/02/19.
AdeptState <W extends StatefulWidget , T , B >
AdeptStatefulWidget <S extends AdeptState <StatefulWidget , dynamic , dynamic > , T , B >
AdeptStatelessWidget <T , B >
AdeptTextEditingController
AdeptValueController <T >
AdeptValueNSController <T >
AlphanumericValidationController
AsciiValidationController
Base64ValidationController
BuildConfig <V >
ClickCallback
ColorUtils
ConnectionUtils
Coordinates
CreditCardValidationController
DateUtils
DateValidationController
DecimalRangeValidationController
DecimalValidationController
DNSValidationController
EmailValidationController
EmptyValidationController
EnterExitRoute
ExceptionUtils
FadeRoute
HexadecimalValidationController
HexColorValidationController
IBase <T >
IBasic <T >
ILifeCycleState
ILoader
ILocalize <T >
InputMethodUtils
IntegerRangeValidationController
IntegerValidationController
IntentUtils
IPValidationController
ISBNValidationController
ItemClickCallback <T >
ItemLongClickCallback <T >
IWidget <T >
JMapEntry <K , V >
Jsonable <T extends Object >
JsonConverter <T , S >
Implement this class to provide custom converters for a specific Type .
JsonEnum
Allows configuration of how enum
elements are treated as JSON.
JsonKey
An annotation used to specify how a field is serialized.
JsonLiteral
An annotation used to generate a private field containing the contents of a
JSON file.
JsonSerializable
An annotation used to specify a class to generate code for.
JsonValidationController
JsonValue
An annotation used to specify how a enum value is serialized.
LengthValidationController
ListStack <E >
Location
LocationListener
LongClickCallback
LowercaseValidationController
MapBuilder <K , V >
MongoIdValidationController
MultiEntrySet <E >
MultiKeyMap <K , V >
MultiKeyMapUtils
NumericValidationController
OnlyTextValidationController
PackageUtils
PositiveDecimalValidationController
PositiveIntegerValidationController
QueueSet <T >
RepeatPasswordValidationController
RotationRoute
ScaleRotateRoute
ScaleRoute
ScreenFormFactor
ScreenUtils
SharedPreferencesUtils
SizeRoute
SlideRoute
StatefulWrapper <S extends AdeptState <StatefulWidget , dynamic , dynamic > , B >
This wrapper is used to wrap some useful fields into a final object to be used in the whole StatefulWidget
StatelessWrapper <B >
This wrapper is used to wrap some useful fields into a final object to be used in the whole StatelessWidget
StreamSubscriptionLifecycleAware
SurrogatePairValidationController
TextUtils
UppercaseValidationController
UrlValidationController
UUIDValidationController
ValidationController
ZonedDateTime
Created by Luis on 03/08/19.
This wrapper class is necessary because java.time.ZonedDateTime has issues with
Gson serialization, which requires a custom TypeAdapter to serialize/deserialize it...
But more important is that ZoneDateTime parsing from String requires Android min API level 26
when this project has defined min API level 21.
Properties
getter/setter pair
Functions
$checkedConvert <T > (Map map , String key , T castFunc (dynamic ), {Object ? readValue (Map , String )? })
→ T
Helper function used in generated code when
JsonSerializableGenerator.checked
is true
.
$checkedCreate <T > (String className , Map map , T constructor (S <S >(String , S (Object ? ), {Object ? readValue (Map , String )? }) ), {Map <String , String > fieldKeyMap = const {} })
→ T
Helper function used in generated code when
JsonSerializableGenerator.checked
is true
.
$checkedNew <T > (String className , Map map , T constructor (), {Map <String , String > ? fieldKeyMap })
→ T
Helper function used in generated code when
JsonSerializableGenerator.checked
is true
.
$checkKeys (Map map , {List <String > ? allowedKeys , List <String > ? requiredKeys , List <String > ? disallowNullValues })
→ void
Helper function used in generated fromJson
code when
JsonSerializable.disallowUnrecognizedKeys
is true for an annotated type or
JsonKey.required
is true
for any annotated fields.
$enumDecode <K extends Enum , V > (Map <K , V > enumValues , Object ? source , {K? unknownValue })
→ K
Returns the key associated with value source
from enumValues
, if one
exists.
$enumDecodeNullable <K extends Enum , V > (Map <K , V > enumValues , Object ? source , {Enum ? unknownValue })
→ K?
Returns the key associated with value source
from enumValues
, if one
exists.
Typedefs
OnClick
= dynamic Function({BuildContext ? ctx , dynamic id , Widget ? w })
OnItemClick <T >
= dynamic Function({BuildContext ? ctx , dynamic id , T? item , int ? position , Widget ? w })
OnItemLongClick <T >
= dynamic Function({BuildContext ? ctx , dynamic id , T? item , int ? position , Widget ? w })
OnLocationChanged
= dynamic Function(Location location )
OnLongClick
= dynamic Function({BuildContext ? ctx , dynamic id , Widget ? w })
OnProviderDisabled
= dynamic Function(String provider )
OnProviderEnabled
= dynamic Function(String provider )
OnStatusChanged
= dynamic Function(String provider , int status , )
RecreateOnResume <T >
= StreamSubscription <T > Function()
Validation
= bool Function({AdeptController ? controller })