hive_dart 0.2.3 copy "hive_dart: ^0.2.3" to clipboard
hive_dart: ^0.2.3 copied to clipboard

A collection of useful utility functions for Dart.

0.0.1 #

  • Initial version.

0.0.2 #

  • 新增 startOfPrevDay、startOfNextDay、startOfPrevWeek、startOfNextWeek、startOfPrevMonth、startOfNextMonth
  • 转换金额函数支持单位参数,默认是分和元转换,现在支持分和万元转换

0.0.3 #

  • 新增 formatArea
  • 修复 formatNumberWithComma 参数为负数时的格式化错误

0.0.4 #

  • 调整 formatDateTime 方法签名

0.0.5 #

  • 导出 model

0.0.6 #

  • 新增 formatShelfLife、formatSize、formatRatePercent、isPayAuthBarcode、isInteger

0.0.7 #

  • 新增 formatAmount
  • isPayAuthBarcode 改名为 isPayAuthCode

0.0.8 #

  • 导出 formatAmount

0.0.9 #

  • 新增 discountToDisplay、discountToBackend、formatDiscount

0.1.0 #

  • 新增 formatCount、formatDateRange、formatDateTimeRange

0.1.1 #

  • 新增 distanceToDisplay、distanceToBackend、calculateDistance、formatDistance

0.1.2 #

  • 新增 formatPenny

0.1.3 #

  • 新增 normalizeDuration、formatDuration

0.1.4 #

  • isPayAuthCode 函数改成 parseAuthCode 函数

0.1.5 #

  • 新增 isEmail、isPrice、formatBusinessTimes、parsePhoneNumber

0.1.6 #

  • formatDate 新增 format 参数

0.1.7 #

  • formatArea 新增 address 参数

0.1.8 #

  • 新增 formatYear, formatBirthday, formatCategory, formatAmountShortly, formatCountShortly, formatBankCardNumber

0.1.9 #

  • 类型支持 JSON 序列化

0.2.0 #

  • 新增 normalizeShelfLife, optimizeTimeRange

0.2.1 #

  • 新增 truncateString, startOfHour, startOfPrevHour, startOfNextHour, endOfHour, timeToTimestamp, timestampToTime, stringToTime

0.2.2 #

  • 新增 isUrl, isVerifyCode, isBankCardNumber, isIdentityCardNumber
  • 新增 timeToTimeField, timeFieldToTime
  • 新增 hexToRgbaObject, hexToRgbaString
  • 新增 getStringLength, getStringWidth, trimString, sliceString, randomString, renderStringTemplate, padStringStart
  • 新增 maskMobile, maskEmail, maskName
  • 新增 randomIntegerByLength, randomIntegerByRange, randomStringByLength, randomStringByCurrentTime
  • 新增 normalizeUrl, toProtocolRelativeUrl, encodeUriComponent, decodeUriComponent
  • 新增 darkenColor, lightenColor, hasSpecialCharacters, removeSpecialCharacters
  • 新增 parseInteger, parseNumber, applyRate

0.2.3 #

  • 新增 isCorporateAccountNumber, isMobile, hasDecimal, parseTime, hasSpecialCharacter, removeSpecialCharacter, applyRateFloor, applyRateCeil, applyRateRound, toHttpProtocolUrl, toRelativeProtocolUrl
  • 删除 isInteger, stringToTime, formatProvince, formatCity, formatDistrict, formatHourMinutes, hasSpecialCharacters, removeSpecialCharacters, applyRate, normalizeUrl, toProtocolRelativeUrl
1
likes
145
points
61
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A collection of useful utility functions for Dart.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

decimal, intl, json_annotation, json_serializable

More

Packages that depend on hive_dart