Aus öffentlichen Paketdaten erstellte Orientierung.
Screwdriver ist ein Dart-Paket, das eine Sammlung nützlicher Erweiterungen und Hilfsfunktionen bietet, um die Entwicklung auf mehreren Plattformen zu vereinfachen und zu beschleunigen. Es stellt Hilfsmethoden für häufige Aufgaben wie Zeichenkettenmanipulation, Datumsverarbeitung und Null-Sicherheit bereit und reduziert Boilerplate-Code. Mit der Produktivität von Entwicklern im Fokus entsteht durch dieses Paket eine bessere Lesbarkeit und Konsistenz in Flutter- und Dart-Projekten. Das Paket unterstützt Android, iOS, Web, macOS, Windows und Linux und ist somit vielseitig für plattformübergreifende Anwendungen geeignet.
Anwendungsfälle
Schnelle Zeichenketten- und Datums-Hilfsfunktionen
Wiederholten Code reduzieren
Plattformübergreifende Entwicklung
Verbesserung der Null-Sicherheit
Codelesbarkeit verbessern
Beschleunigung der Prototypenerstellung
Hauptmerkmale
Umfangreiche Sammlung von Dart-Erweiterungen
nullsichere Hilfsfunktionen
Plattformübergreifende Kompatibilität
Minimale Abhängigkeitsüberhead
Einfache Integration über pub
gut dokumentierte Hilfsfunktionen
Geeignet für
Flutter-Entwickler, die Produktivitätssteigerungen suchen
Teams, die darauf abzielen, nützlichen Code zu standardisieren
Projekte, die eine schnelle Entwicklung erfordern
Nur Dart oder Multiplattform-Apps
Entwickler, die saubere, präzise Syntax schätzen
Hinweise
Kann subtile API-Änderungen einführen, wenn über Teams hinweg verwendet
Beschränkt auf Utility-Erweiterungen, nicht auf vollständige Frameworks
Bei der Aktualisierung von Versionen erfordert sorgfältige Überprüfung
Nicht geeignet für komplexe Geschäftslogik
Am besten zusammen mit etablierten Codierungsstandards verwendet
Original-README
Originaler README-Schnappschuss aus dem verknüpften Quell-Repository. Aktuelle Inhalte finden Sie im Repository.
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.