flutter_helper_utils 1.0.5 copy "flutter_helper_utils: ^1.0.5" to clipboard
flutter_helper_utils: ^1.0.5 copied to clipboard

The Flutter Helper Package is a valuable tool for developers who want to speed up their development process. It offers various extensions and helper methods that can make development more efficient.

Flutter Helper Utils #

The Flutter Helper Utils is a valuable tool for developers who want to speed up their development process. It offers various extensions and helper methods that can make development more efficient.

Installation #

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

dependencies:
  flutter:
    sdk: flutter
  flutter_helper_utils: ^1.0.5

Then, run flutter packages get in your terminal.

Usage #

After installation, import the package in your dart file:

import 'package:flutter_helper_utils/flutter_helper_utils.dart';

You can now use any of the helper methods or extensions provided by the package. Some examples include:

// Example of using the isNullOrEmpty extension on a String
String? name = '';
if(name.isNullOrEmpty) {
  print('Name is null or empty');
}

// Example of using the addHours extension on a date
DateTime date = DateTime.now();
DateTime extraTwoHours = date.addHours(2);

// Example of using the ConvertObject helper methods to convert a map to User object.
factory User.fromMap(Map<String, dynamic> map) {
    return User(
      id: ConvertObject.toInt(map['user']),
      walletBalance: ConvertObject.tryToDouble(map['walletBalance']),
      posts: Post.fromList(ConvertObject.toList(map['posts'])),
    );
  }

Contributions #

Contributions to this package are welcome. If you have any suggestions, issues, or feature requests, please create a pull request on the repository.

License #

flutter_helper_utils is available under the BSD 3-Clause License.

Buy Me A Coffee

34
likes
0
pub points
80%
popularity

Publisher

unverified uploader

The Flutter Helper Package is a valuable tool for developers who want to speed up their development process. It offers various extensions and helper methods that can make development more efficient.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, intl

More

Packages that depend on flutter_helper_utils