extension_ksama 0.0.2 copy "extension_ksama: ^0.0.2" to clipboard
extension_ksama: ^0.0.2 copied to clipboard

A package that provides commonly used extensions to speed up development.

extension_ksama #

Logo

Collection of must have extensions on DateTime, String, BuildContext and many more.

Getting StartedExtensions

Getting started #

Import

import 'package:extension/_ksamaextension_ksama.dart';

List of Extensions #

Currently we have following extensions getters, operators and methods.

Extensions on DateTime:

- Operations
  - DateTime superAdd({
      int days = 0,
      int weeks = 0,
      int months = 0,
      int years = 0,
    })
  - DateTime superSubtract({
      int days = 0,
      int weeks = 0,
      int months = 0,
      int years = 0,
    })
  - DateTime get nextDay
  - DateTime get prevDay
  - DateTime get firstDayOfMonth
  - DateTime get lastDayOfMonth
  - DateTime get nextMonth
  - DateTime get prevMonth
  - DateTime get firstDayOfWeek
  - DateTime get lastDayOfWeek
  - DateTime get nextWeek
  - DateTime get prevWeek
  - DateTime get firstDayOfYear
  - DateTime get lastDayOfYear
  - DateTime get nextYear
  - DateTime get prevYear
- Checkers
  - bool get isToday
  - bool get isTomorrow
  - bool get isYesterday
  - bool get isWeekend
  - bool get isWeekday
- Comparators
  - bool operator >(DateTime otherDate)
  - bool operator >=(DateTime otherDate)
  - bool operator <(DateTime otherDate)
  - bool operator <=(DateTime otherDate)
- Manipulators
  - DateTime get onlyDate
  - DateTime get removeMicros
  - DateTime get removeMillis
  - DateTime get removeSeconds
  - DateTime get removeMinutes

Extensions on String:

- Cases
  - String get capitalisation
  - String get titleCase
  - String get pascalCase
  - String get camelCase
  - String get toggleCase
- Manipulators
  - String get reverse
  - List<String> get tokenise
  - String get abbreviate
- Converters
  - int? toInt({int? base})
  - double? toDouble()
  - bool? toBool()
- Validators
  - bool get isEmail
  - bool get isISBN
  - bool get isIPv4
  - bool get isIPv6
- Checkers
  - bool get isBlanksOnly
  - bool get isDecimal
  - bool get isBinary
  - bool get isOctal
  - bool get isHexadecimal
  - bool get isDouble
  - bool get isBool

Extensions on BuildContext:

- ThemeData get theme
- ColorScheme get colorScheme
- TextTheme get textTheme
2
likes
140
points
23
downloads

Publisher

unverified uploader

Weekly Downloads

A package that provides commonly used extensions to speed up development.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on extension_ksama