broken_functionality 0.0.4 copy "broken_functionality: ^0.0.4" to clipboard
broken_functionality: ^0.0.4 copied to clipboard

A package that provides functionality that used to work on previous versions of dart/flutter but no longer do

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';

List methods #

.removeWhen() #

the equivalent to removeWhere()

List testArray = [1,2,8,11];
testArray.removeWhen((number){
	return number < 10;
});
print(testArray);

.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);

DateTime Methods #

.toLocalTimeZone() #

the equivalent to toLocal()

DateTime utc = DateTime.now().toUtc();
print(utc);
DateTime localTimeZone = await utc.toLocalTimeZone();
print(localTimeZone);
0
likes
100
pub points
0%
popularity

Publisher

unverified uploader

A package that provides functionality that used to work on previous versions of dart/flutter but no longer do

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on broken_functionality