Flutter Utility Package

A Flutter package that extends the functionality of DateTime, String and int classes. This package contains the following utility methods (and more):

DateTime

  • firstDayOfMonth: returns the first day of the month for a given DateTime instance.
  • lastDayOfMonth: returns the last day of the month for a given DateTime instance.

String

  • capitalizeFirstLetter: returns a string with the first letter capitalized.
  • uncapitalizeFirstLetter: returns a string with the first letter in lowercase.

int

  • isEven: returns a boolean indicating whether the number is even or not.
  • isOdd: returns a boolean indicating whether the number is odd or not.

Usage

To use this package, add flutter_utility_package as a dependency in your pubspec.yaml file.

License

The package is available as open source under the terms of the MIT License.

Libraries

flutter_utils