flutter_string_converter 0.0.1 icon indicating copy to clipboard operation
flutter_string_converter: ^0.0.1 copied to clipboard

This Flutter Package for converting string to date, int, double or set as you want. But the only condition is that the string is in format of that convertible type

flutter_string_converter #

This Flutter Package for converting string to date, int, double or set as you want. But the only condition is that the string is in format of that convertible type

Using #

What can you do with this package. #

  • To first letter of string capital example
 "your string".toFirstCapital() 

and you get result Your string

  • To all first letter of string capital example
 "your string".toEveryFirstCapital() 

and you get result Your String

  • To set in camel case of string example
 "your string".toCamelCase() 

and you get result yOuR StRiNg

  • To get only first character of string example
 "Your string".toSingleLetter() 

and you get result Y

  • To get all first letter of string with joinWith example
 "your string".toEverySingleLetter(joinWith: ".") 

and you get result Y.S

  • To get double value from string example
 "1.2".toDouble() 
  • To get int value from string example
 "1".toInt() 
  • To get date with any format you want example
 "2021-05-10".toDate(format: FormatDate.dmy) 

and you get result 10/05/2021

Date Format #

Format NameResult
FormatDate.dmyDash16-08-2021
FormatDate.mdyDash08-16-2021
FormatDate.ymdDash2021-08-16
FormatDate.ydmDash2021-16-08
FormatDate.dmy16/08/2021
FormatDate.mdy08/16/2021
FormatDate.ymd2021/08/16
FormatDate.ydm2021/16/08
FormatDate.dmyDash1216-08-2021 11:30 PM
FormatDate.dmyDash12WithSec16-08-2021 11:30:10 PM
FormatDate.mdyDash1208-16-2021 11:30 PM
FormatDate.mdyDash12WithSec08-16-2021 11:30:10 PM
FormatDate.ymdDash122021-08-16 11:30 PM
FormatDate.ymdDash12WithSec2021-08-16 11:30:10 PM
FormatDate.ydmDash122021-16-08 11:30 PM
FormatDate.ydmDash12WithSec2021-16-08 11:30:10 PM
FormatDate.dmy1216/08/2021 11:30 PM
FormatDate.dmy12WithSec16/08/2021 11:30:10 PM
FormatDate.mdy1208/16/2021 11:30 PM
FormatDate.mdy12WithSec08/16/2021 11:30:10 PM
FormatDate.ymd122021/08/16 11:30 PM
FormatDate.ymd12WithSec2021/08/16 11:30:10 PM
FormatDate.ydm122021/16/08 11:30 PM
FormatDate.ydm12WithSec2021/16/08 11:30:10 PM
FormatDate.dmyDash2416-08-2021 23:30
FormatDate.dmyDash24WithSec16-08-2021 23:30:10
FormatDate.mdyDash2408-16-2021 23:30
FormatDate.mdyDash24WithSec08-16-2021 23:30:10
FormatDate.ymdDash242021-08-16 23:30
FormatDate.ymdDash24WithSec2021-08-16 23:30:10
FormatDate.ydmDash242021-16-08 23:30
FormatDate.ydmDash24WithSec2021-16-08 23:30:10
FormatDate.dmy2416/08/2021 23:30
FormatDate.dmy24WithSec16/08/2021 23:30:10
FormatDate.mdy2408/16/2021 23:30
FormatDate.mdy24WithSec08/16/2021 23:30:10
FormatDate.ymd242021/08/16 23:30
FormatDate.ymd24WithSec2021/08/16 23:30:10
FormatDate.ydm242021/16/08 23:30
FormatDate.ydm24WithSec2021/16/08 23:30:10
FormatDate.time1211:30 PM
FormatDate.time12WithSec11:30:10 PM
FormatDate.time2423:30
FormatDate.time24WithSec23:30:10
1
likes
130
pub points
0%
popularity

Publisher

unverified uploader

This Flutter Package for converting string to date, int, double or set as you want. But the only condition is that the string is in format of that convertible type

Repository (GitHub)
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on flutter_string_converter