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

패키지 상세v3.0.0

multiline

다중 줄 문자열 레코드에 메서드 확장을 통해 편리한 접근을 제공합니다.

AndroidiOSWebmacOSWindowsLinux
30일 다운로드
299
좋아요
26
Pub 점수
150

패키지 설치

flutter pub add multiline

패키지 개요

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

다중 줄 패키지는 다중 줄 문자열 작업을 위한 메서드 확장을 제공함으로써 Flutter 및 Dart 애플리케이션을 향상시킵니다. 복잡한 텍스트 데이터를 쉽게 접근하고 조작하며 처리할 수 있도록 하여 다중 줄 텍스트 데이터의 관리를 단순화합니다. 직관적인 구문과 최소한의 보일러플레이트 코드를 통해 템플릿, 구성 블록 또는 형식화된 출력과 같은 복잡한 텍스트 콘텐츠를 다룰 때 가독성과 유지보수성을 향상시킵니다. 이 패키지는 가볍고 모든 주요 Flutter 플랫폼과 호환됩니다.

사용 사례

  • 구조화된 텍스트 블록 파싱
  • 템플릿 문자열 처리
  • 구성 데이터 처리
  • 로그 또는 디버그 출력 형식 지정
  • 테스트에서 코드 조각 사용하기

주요 기능

  • 다중 줄 문자열을 위한 메서드 확장
  • 줄 단위 데이터에 접근하기 위한 깔끔한 구문
  • 모든 플러터 플랫폼을 지원합니다
  • 경량이며 통합이 쉬움
  • 외부 종속성 없음

적합한 대상

  • 텍스트 중심 앱을 개발하는 개발자
  • 일관된 다중 줄 문자열 처리가 필요한 팀
  • 코드 생성 또는 템플릿 작업을 포함하는 프로젝트
  • 형식화된 문자열 확인이 필요한 테스트 환경

고려 사항

  • 대규모 텍스트 처리를 위한 것이 아님
  • 문자열 조작에 국한되며, 완전한 구문 분석은 아님
  • 작은에서 중간 규모의 다중 줄 콘텐츠에 가장 적합

원본 README

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

multiline

Actions Status Coverage Pub Code size License: WTFPL effective_dart GitHub stars

About

Provides convenient access to multiline String records with method extensions.
Useful for templates, mockups and SQL queries.

Just use the symbol "|" to indicate the beginning of a line.
Beautiful code formatting using some useful extensions to the String methods.

Available method extensions:

  • multiline() - return formatted with pipeline symbol "|" String.

  • multilineSplit() - splits the string and returns a Iterable<String> of substrings.

You can use custom "pipeline" and "join" symbols.

For example

import 'package:multiline/multiline.dart'; // <= import package

void main() {
  /// Return formatted with pipeline symbol "`|`" [String].
  final string =
    '''
    |/*
    | * List of books and the number of
    | * authors associated with each book
    | */
    |SELECT
    |      `books`.`title` AS `Title`,
    |       count(*)       AS `Authors`
    |FROM  `books`
    |JOIN  `authors`
    |  ON  `books`.`isbn` = `authors`.`isbn`
    |GROUP BY
    |      `books`.`title`
    |ORDER BY
    |      `books`.`title` ASC
    |;
    '''.multiline();
  print(string);

  /// Splits the string and returns a [Iterable] of substrings.
  final iterable =
    '''
    | * One
    | * Two
    | * Three
    '''.multilineSplit();
  iterable.forEach(print);
}

Coverage

Changelog

Refer to the Changelog to get all release notes.

Maintainers

Plague Fox

License

WTFPL

카테고리

소스 저장소

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

아직 데이터가 없습니다.