broken_functionality

Creator: coderz1093

Last updated:

0 purchases

broken_functionality Image
broken_functionality Images

Languages

Categories

Add to Cart

Description:

broken functionality

Broken Functionality #
A replacement for dart/flutter functions that are no longer working for some reason(or at least that's what I believe(I'm probably wrong)).
Hecho en Puerto Rico(🇵🇷) por Radamés J. Valentín Reyes
Import #
import 'package:broken_functionality/broken_functionality.dart';
copied to clipboard
List methods #
.removeWhen() #
the equivalent to removeWhere()
List testArray = [1,2,8,11];
testArray.removeWhen((number){
return number < 10;
});
print(testArray);
copied to clipboard
.asyncRemoveWhen()
The same thing as the one above but allows you to use async functions and await for the completion
List testArray = [1,2,8,11];
await testArray.asyncRemoveWhen((number)async{
return number < 10;
});
print(testArray);
copied to clipboard
DateTime Methods #
.toLocalTimeZone() #
the equivalent to toLocal()
DateTime utc = DateTime.now().toUtc();
print(utc);
DateTime localTimeZone = await utc.toLocalTimeZone();
print(localTimeZone);
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.