idkit_extension 0.0.4 idkit_extension: ^0.0.4 copied to clipboard
This package is mainly used to extend common functions of some classes in Flutter development, making it more convenient and simple for developers to develop.
0.0.1 #
-
Extend the functions of some classes of flutter.
- Extension of the string class.
- Remove all spaces in the string.
- The string is directly converted to int or double.
- String directly converted to collection sequence.
- Can check whether the string is a legal ID number.
- It can be verified whether the string is all Chinese characters.
- It is possible to check whether the character string is a legal mobile phone number.
- It is possible to check whether the character string is all digits.
- You can format the string amount.
- Extension of the list class.
- The elements in the collection can be spliced into strings.
- Extension of the string class.
-
The extension method of each extension class
-
String
1. trimAll() -> String 2. toInt() -> int 3. toDouble() -> double 4. toList({int? lengthSplit,Pattern? patternSplit}) -> List<String> 5. isIDCard() -> bool 6. isChineseCharacters() -> bool 7. isPhoneNumber() -> bool 8. isAllNumber() -> bool 9. thousands() -> String
-
List
1. splicing() -> String
-
0.0.2 #
-
New method extension.
-
String
- Convert a number string to a string with specified decimal places.
-
Num
- Convert a number to a string with specified decimal places.
-
-
Extension methods of each new extension class.
-
String
1. keepFractionDigits(int,{bool}) -> String
-
Num
1. keepFractionDigits(int,{bool}) -> String
-
0.0.3 #
-
New method extension.
- List
- Collection object value copy
- Map
- Copy the value of the key-value collection
- A key-value collection gets a new key-value from another key-value collection
- List
-
Extension methods of each new extension class.
- List
1. copy({bool}) -> List
- Map
1. copy() -> Map 2. copyFrom() -> Map
- List
0.0.4 #
-
Get a block of a certain size in the horizontal or vertical direction. for example:
const int aint = 10; Widget aw = aint.hPiece; aw = aint.vPiece; const double adouble = 10; aw = adouble.hPiece; aw = adouble.vPiece; const num anum = 10; aw = anum.hPiece; aw = anum.vPiece;