Package selection guidance compiled from public package information, community data, and project usage.
Screwdriver is a Dart package that offers a collection of useful extensions and helper functions to streamline and accelerate development across multiple platforms. It provides utility methods for common tasks such as string manipulation, date handling, and null safety, reducing boilerplate code. Designed with developer productivity in mind, it enhances readability and consistency in Flutter and Dart projects. The package supports Android, iOS, Web, macOS, Windows, and Linux, making it versatile for cross-platform applications.
Use cases
Quick string and date utilities
Reducing repetitive code
Cross-platform development
Enhancing null safety
Improving code readability
Accelerating prototyping
Key features
Extensive set of Dart extensions
Null-safe utility functions
Cross-platform compatibility
Minimal dependency overhead
Easy integration via pub
Well-documented helpers
Suitable for
Flutter developers seeking productivity boosts
Teams aiming to standardize utility code
Projects requiring rapid development
Dart-only or multi-platform apps
Developers who value clean, concise syntax
Considerations
May introduce subtle API changes if used across teams
Limited to utility enhancements, not full frameworks
Requires careful review when upgrading versions
Not suitable for complex business logic
Best used alongside established coding standards
Original README
Original README snapshot from the linked source repository. Visit the repository for the latest content.
Screwdriver
A dart package aiming to provide useful extensions and helper functions to ease and speed up development.
file.onModified(() => print('file modified'));
file.clear(); // flushes all the data of file
file.isEmpty;
file.appendString('hello');
file << 'some text';
file1 + file2; // appends file2 content at the end of file1
Some More
check(divider != 0);
runCaching((){
count / 0;
});
TODO('find a way to implement this properly'); // throws UnimplementedError on invocationTriple(45,true, 'Hello World');
user.takeIf((u) => u.age > 18)?.allowAccess();
person.takeUnless((p) => p > 18)?.areTeenagers();
finalDateTime date = tomorrow;
yesterday.isInDecember;
Check out EXTENSIONS.md for a complete list of all the available extensions.
Please file feature requests and bugs at the issue tracker.
Liked Screwdriver?
Show some love and support by starring the repository.
Or You can
License
Copyright (c) 2020, BirjuVachhaniAll rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributionsin binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.