coder_matthews_extensions 1.8.5 copy "coder_matthews_extensions: ^1.8.5" to clipboard
coder_matthews_extensions: ^1.8.5 copied to clipboard

outdated

A collection of useful extensions used in most of my personal projects

1.8.5 #

  • bug fixes

1.8.4 #

  • made assepted [ErrorData] more generic (T extends ErrorData)
  • bug fixes

1.8.3 #

  • added exception object as a parameter to [IAppErrorHandler]

1.8.2 #

  • BREAKING CHANGES:

    • [maxElement], [maxDate], [maxValue] have been replaced with [max] which supports the comparable data type
    • [minElement], [minDate], [minValue] have been replaced with [min] which supports the comparable data type
  • minor change to the [inIgnoreCase], [containsIgnoreCase] and [equalsIgnoreCase] functions. Now accepts an optional parameter [trim] for whether or not the strings should be trimmed for comparison.

  • [FutureHelper] now supports up to running 10 [Future] functions in parallel

1.8.1 #

  • Made it so that [ControllerException] implements [Exception]

1.8.0 #

  • added a global error handler as well as a custom http client called [MakerHttpClient] that allows throwing exceptions on certain [Response] status codes from http.

1.7.0 #

  • added shimmer loading widgets (check the example project to see it in action!)

  • added a minor bug fix for checking whether device is a tablet or not

1.6.0 #

  • added a new orderby type function [orderByMany] which allows you to order a list of complex object by multiple fields

1.5.1 #

  • bug fixed for [orderBy] extension function

  • added an [order] function for list of nullable premitive data types

    • [Enum]
    • [DateTime]
    • [String]
    • [num]
    • [Duration]
    • [TimeOfDay]
    • [Comparable]

1.5.0 #

  • added a [FutureHelper] that allows you to run up to 6 future functions in parallel
  • added more extensions to [list_extensions]
    • [intersectBy]
    • [orderBy] <- supports the following data types (see in code documentation for more information)
      • [Enum]
      • [DateTime]
      • [String]
      • [num]
      • [Duration]
      • [TimeOfDay]
  • reorganized files

1.4.0 #

  • added a new functions to list extensions

    • [minDate]
    • [maxDate]
    • [mapWithIndex]
  • added a [maxParallelisms] property to [mapAsync] and [expandAsync]. (see in code docs for more)

  • other bug fixes with correcting documentation

  • added example widget pages to demonstrate using [getKeyPosition]

  • added extension functions on [Brightness]. Get functions [isLight] and [isDark]

  • BREAKING CHANGES:

    • class name changed from [PositionDate] to [WidgetPositionData]
    • properties name change in [PositionData] (now [WidgetPositionData])
      • [position] -> [relativeRect]
      • [widgetBox] -> [renderBox]

1.3.2 #

  • bug fix with android not properly recognizing tablet

1.3.1 #

  • bug fix with android not properly recognizing tablet

1.3.0 #

  • Added platform implementations
    • There is a new class called [CoderMatthewsExtensions] which has a new function called [isTablet()] which returns a bool whether the current device is a tablet or a regulat phone.

1.2.3 #

  • bug fix within [inIgnoreCase]

1.2.2 #

  • BREAKING CHANGE: renamed [inIgnoreCase] to [containsIgnoreCase]

  • added an [inIgnoreCase] and [equalsIgnoreCase] to string extensions

1.2.1 #

  • added a few async helpers for mapping list of futures [mapAsync] and for expanding futures [expandAsync]

1.2.0 #

  • added a material helper function to get the [RenderBox] of a widget global key

1.1.0 #

  • added a new class [ValidationContract] for an exception workflow for validating conditions, null objects and empty/null strings.

  • added an extension on object for checking if any object is null.

  • BREAKING CHANGE: removed [compoundAnd] and [compoundOr] from list extensions as dart already has a function like it.

1.0.4 #

  • added [toJsonEncodedString] to map extensions and [toDecodedJson] to string entensions for converting to and from json.

  • added [addBetween] to list extensions.

1.0.3 #

  • BREAKING CHANGE: renamed [firstOrNull] to [firstWhereOrNull] for list extensions.

1.0.2 #

  • Added [splitCamelCase] funtion to string extensions.

  • Added enum extensions.

1.0.1 #

  • Added [firstOrNull] function to list extensions.

  • Added a [removeNulls] function on map types.

1.0.0 #

  • Initial version.
1
likes
0
points
22
downloads

Publisher

unverified uploader

Weekly Downloads

A collection of useful extensions used in most of my personal projects

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, http, intl, plugin_platform_interface

More

Packages that depend on coder_matthews_extensions

Packages that implement coder_matthews_extensions