common_utilities
Dart 언어의 일반 유틸리티 패키지로 코드를 더 빠르고 간단하며 깔끔하게 만듭니다. Dart 기본 유형용으로 유용한 함수가 많이 포함되어 있습니다(모든 플러터 플랫폼 지원)
Dart 언어의 일반 유틸리티 패키지로 코드를 더 빠르고 간단하며 깔끔하게 만듭니다. Dart 기본 유형용으로 유용한 함수가 많이 포함되어 있습니다(모든 플러터 플랫폼 지원)
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
A Dart language Common Utility package, that makes your code faster,easier and cleaner. contains lots of useful functions for Dart primitive types (support all Flutter platforms)
version 0.1.1 Includes only String utils.
add this line to your pubspec.yaml :
dependencies:
common_utilities: ^0.1.1
or enter this to your command line:
flutter pub add common_utilities
Includes over 30 useful string functions such as :
import 'package:common_utilities/common_utilities.dart';
void main() {
String yourStr = 'If you want something you have never had you must do something you have never done';
String result = yourStr.stringUtils().subStringBetween('want', 'never');
// print(result) => 'something you have'
List<String> result2 = yourStr.stringUtils().subStringsBetween('you', 'never');
// print(result2) => ['something you have' , 'must do something you have']
String result3 = yourStr.stringUtils().subStringAfter('something');
// print(result3) => 'you have never had you must do something you have never done'
bool lastIndex = true; //This is optional & its false by default
String result4 = yourStr.stringUtils().subStringAfter('something', lastIndex);
// print(result4) => 'you have never done'
String str = CommonUtils.getRandomString(10);
// print(str) => 'btorklcvxw'
}
의존성 목록 4 개
{"sdk":"flutter"}^0.17.0{"sdk":"flutter"}^1.0.0사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗