Orientação gerada a partir de informações públicas. Apenas para referência.
Screwdriver é um pacote Dart que oferece uma coleção de extensões úteis e funções auxiliares para agilizar e acelerar o desenvolvimento em múltiplas plataformas. Ele fornece métodos úteis para tarefas comuns como manipulação de strings, tratamento de datas e segurança contra nulos, reduzindo o código repetitivo. Projetado com a produtividade do desenvolvedor em mente, ele melhora a legibilidade e consistência em projetos Flutter e Dart. O pacote suporta Android, iOS, Web, macOS, Windows e Linux, tornando-o versátil para aplicações multiplataforma.
Casos de uso
Utilitários rápidos de string e data
Reduzindo código repetitivo
Desenvolvimento multiplataforma
Melhorando a segurança nula
Melhorar a legibilidade do código
Acelerando a prototipagem
Principais recursos
Extensa coleção de extensões Dart
funções úteis seguras para nulos
Compatibilidade multiplataforma
Sobrecarga mínima de dependência
Integração fácil por meio do pub
ajudantes bem documentados
Indicado para
Desenvolvedores Flutter em busca de aumentos de produtividade
Equipes que buscam padronizar código útil
Projetos que exigem desenvolvimento rápido
Aplicativos somente Dart ou multiplataforma
Desenvolvedores que valorizam sintaxe limpa e concisa
Considerações
Pode introduzir mudanças sutis na API se usado entre equipes
Limitado a melhorias de utilidade, não a frameworks completos
Requer revisão cuidadosa ao atualizar versões
Não adequado para lógica de negócios complexa
Melhor usado junto com padrões estabelecidos de codificação
README original
Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.
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.