flutter_vault 1.0.0
flutter_vault: ^1.0.0 copied to clipboard
A comprehensive utility library for Flutter development, providing essential helper methods and tools in one cohesive package.
example/example.dart
import 'package:flutter_vault/flutter_vault.dart';
void main() {
// Create an instance of FlutterUtils
FlutterVault flutterUtils = FlutterVault();
// Define a function to be executed after debounce
void printHello() {
print('Hello, world!');
}
// Call the debounce method with the printHello function
flutterUtils.debounce(printHello);
// Call the debounce method again within the debounce duration
// This call should cancel the previous debounce timer and start a new one
// As a result, the printHello function will only be called once after the debounce duration
flutterUtils.debounce(printHello, 1000);
}