Skip to content

Extensions

BuildContext Extensions

  • isNarrow is to know if the mobile screen is narrow like iPhone SE.
  • isWide is to know if the mobile screen is wide like table or iPad.

String Extensions

  • tryInt
  • tryDouble
  • isEmail
  • ifEmpty
  • or
  • orNull
  • upTo
  • cut
  • replace
  • hasUrl
  • sanitize
  • dateTime
  • Ymd
  • ymd
  • YmdHms
  • YmdHm
  • md
  • his
  • isNullOrEmpty