패키지, 저장소 및 앱 카테고리 검색

패키지 상세v4.8.2

more

더 많은 Dart — 실제로. 수집, 반복, 캐싱, 수학, 일치, 정렬 및 형식 지정을 쉽게.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
36.4만
좋아요
86
Pub 점수
160

패키지 설치

flutter pub add more

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

More Dart는 컬렉션 조작, 반복, 캐싱, 수학 연산, 패턴 매칭, 정렬 및 포맷팅을 위한 편리한 메서드를 제공하여 Dart의 핵심 기능을 확장하는 유틸리티 패키지입니다. 일반적인 작업에 직관적이고 체인 가능한 API를 제공함으로써 개발자의 생산성을 높입니다. 가볍고 쉽게 통합할 수 있도록 설계되어 Android, iOS, Web, macOS, Windows, Linux 등 모든 주요 플랫폼을 지원합니다. 반복적인 코드 패턴을 단순화하고 코드의 가독성을 향상시키고자 하는 개발자에게 이상적입니다.

사용 사례

  • 데이터 변환 파이프라인
  • 자주 액세스되는 데이터 캐싱
  • 컬렉션에 대한 수학적 계산
  • 문자열 및 형식 처리
  • 복잡한 데이터 정렬 및 필터링
  • 컬렉션 내 패턴 매칭

주요 기능

  • 유용한 메서드를 제공하는 핵심 Dart 클래스 확장
  • 체이널리블하고 유창한 API 설계
  • 다중 플랫폼 개발을 지원합니다
  • 경량이며 종속성 없음
  • 포괄적인 유틸리티 함수
  • pub add를 통한 간편한 통합

적합한 대상

  • 향상된 유틸리티 함수를 찾는 Dart 개발자
  • 자주 데이터 처리가 필요한 프로젝트
  • 반복 코드를 줄이려는 팀
  • 다중 플랫폼 대상 애플리케이션
  • 코드의 명확성과 유지보수성에 집중하는 개발자

고려 사항

  • 기본 유형을 확장할 경우 미묘한 동작 변경이 발생할 수 있습니다
  • 추상화 계층으로 인해 성능이 중요한 핫 패스에는 적합하지 않습니다
  • 기본 예제 외에 문서가 제한적
  • 강한 타이핑 관행과 함께 사용하는 것이 가장 좋습니다
  • Dart 확장 메서드에 익숙해야 합니다

원본 README

연결된 소스 저장소의 README 원문 스냅샷입니다. 최신 내용은 저장소에서 확인하세요.

More Dart — Literally

Pub Package Build Status Code Coverage GitHub Issues GitHub Forks GitHub Stars GitHub License

A collection of extensively tested extensions that make Dart a better place:

Library Description
async Extensions to Stream.
cache Caching strategies and their expiry policy.
char_matcher Character classes, their composition, and operations on strings.
collection Extensions to Iterable and new collection types.
comparator Common comparators, and extensions to perform advanced operations.
diff Tools for comparing lists.
feature Information about the runtime environment.
functional Types and features known from functional programming.
graph Graph-theory objects and algorithms.
interval Continuous interval data type over a comparable type.
math Common mathematical functions.
number Number types: fraction, complex, quaternion.
printer Fluent interface to configure sophisticated formatter.
temporal Extensions to DateTime and Duration types.
tuple Tuple extension methods on generic records.

And there are more to come ...

This library is open source, stable and well tested. Development happens on GitHub. Feel free to report issues or create a pull-request there. General questions are best asked on StackOverflow.

The package is hosted on dart packages. Up-to-date class documentation is created with every release.

Misc

Installation

Follow the installation instructions on dart packages.

Import the all-including parent package:

import 'package:more/more.dart';

Or one or more of the specific packages into your Dart code:

import 'package:more/async.dart';
import 'package:more/cache.dart';
import 'package:more/char_matcher.dart';
import 'package:more/collection.dart';
import 'package:more/comparator.dart';
import 'package:more/diff.dart';
import 'package:more/feature.dart';
import 'package:more/functional.dart';
import 'package:more/graph.dart';
import 'package:more/interval.dart';
import 'package:more/math.dart';
import 'package:more/number.dart';
import 'package:more/printer.dart';
import 'package:more/temporal.dart';
import 'package:more/tuple.dart';
Contributing

The goal of the library is to provide a loose collection of carefully curated utilities that are not provided by the Dart standard library. All features must be well tested. New features must have significant advantages over alternatives, such as code reduction, readability improvement, speed increase, memory reduction, or improved accuracy. In case of doubt, consider filing a feature request before filing a pull request.

History

This library started in April 2013 as I was working through the puzzles of Project Euler and encountered some missing features in Dart. Over time the code grew and became more useful in many other places, so I created this reusable library.

Some parts of this library are inspired by similar APIs in Google Guava (Google core libraries for Java) and Apache Commons (a repository of reusable Java components).

License

The MIT License, see LICENSE.

카테고리

의존성

의존성 목록 4 개

소스 저장소

이 패키지를 사용하는 프로젝트