Adds several extensions
Extensions color code we thank "TinyColor"
Command |
Description |
ifEmpty |
if string is empty returns a 'text' otherwise return string |
isBlank |
if string is empty or contains only space returns true otherwise returns false |
ifBlank(() => 'text') |
if string is empty or contains only space returns 'text' otherwise returns string |
Command |
Description |
tryFirstWhereType |
returns a first element where type is T else null |
separate(int Function(T) separator) |
returns a SeparatedResult separated by separator |
separateByContains(Iterable |
returns a SeparatedResult separated by an iterable via contains method |
List |
returns the two iterable joined |
Command |
Description |
generateIterable<K, V>(T Function(K key, V value) generator) |
return List of MapEntry<K, V> |
every<K, V>(bool test(K key, V value)) |
|
any<K, V>(bool test(K key, V value)) |
|
T |
Command |
Description |
D |
DateTime.copyWith |
|
D |
DateTime.copyWithPosition |
|
F |
DateTime.toTimeOfDay |
|
F |
DateTime.copyWithTimeOfDay |
|
Command |
Description |
TargetPlatformExt.isMobile |
returns bool |
TargetPlatformExt.isDesktop |
returns bool |
InputDecoration.completeWith(...) |
returns a copy of InputDecoration by completing it with the attributes |
DataRow.copyWith(...) |
returns a copy of DataRow with the new attributes |
DataRow.completeWith(...) |
returns a copy of DataRow by completing it with the attributes |
DataCell.copyWith(...) |
returns a copy of DataCell with the new attributes |
DataCell.completeWith(...) |
returns a copy of DataCell by completing it with the attributes |
Listenable - ChangeNotifier
Widget |
Description |
ChangeableProvider |
... |
ChangeableBuilder |
listen to a Listenable and construct the ui based on the changes |
ChangeableListener |
... |
ChangeableConsumer |
to do... |
ChangeableValueBuilder |
listen to a Listenable and construct the ui based on the changes only if they respect the 'condition' or the value does not change |
ChangeableValueListener |
to do... |
ChangeableValueConsumer |
to do... |
Others
Widget |
Description |
SizeCopier |
Update a SizeCopierController with the size of the child |
SizeCopy |
Create a SizedWidget taking inspiration from SizeCopierController |
FadeIndexStack |
Animate the index widget on the Stack to enter and exit with a FadeTransition |