A dart package which provides a lot of helpers functions for easy development.

Overview

more_functions

Pub Version Github stars License Style

A dart package which provides a lot of helpers functions for easy development.

Installation

  1. Add this to your packages pubspec.yaml file:
dependencies:
  more_functions: <^last-version>
  1. Install it You could run pub get:
$ dart pub get
  1. Import it Now in Dart code, you can use:
import 'package:more_functions/more_functions.dart';

Overview

We support two types of Functions: Regular and extension.

List of Helpers functions type:

  1. String

String

  1. Case Assertions
  2. Upper Case
  3. Upper Case
  4. Char
Case Assertions
// Regular functions
bool getIsUpperCase(String string);

bool getIsLowerCase(String string);

bool getFirstIsUpperCase(String string);

bool getLastIsUpperCase(String string);

bool getFirstIsLowerCase(String string);

bool getLastIsLowerCase(String string);

bool getCharAtIsUpperCase(String string, int index);

bool getCharAtIsLowerCase(String string, int index);

// Extension functions
print('Dart'.isUpperCase); // false
print('Dart'.isLowerCase); // false
print('Dart'.firstIsUpperCase); // true
print('Dart'firstIsLowerCase); // false
print('Dart'.lastIsLowerCase); // true
print('Dart'.charAtIsUpperCase(1)); // false
print('Dart'.charAtIsLowerCase(1)); // true
Upper Case
// Regular functions
String getFirstToUpperCase(String string, {bool allWords = false});

String getLastToUpperCase(String string, {bool allWords = false});

String getUpperCamelCase(String string, {bool attached = false, String betweenWords = ''});

String getUpperSnakeCase(String string);

// Extension functions
print('dart'.firstToUpperCase); // 'Dart'
print('dart'.firstToLowerCase); // 'darT'
print('upper camel case'.toLowerCamelCase); // 'Upper Camel Case'
print('upper underscore case'.toLowerSnakeCase); // 'UPPER_UNDERSCORE_CASE'
Lower Case
// Regular functions
String getFirstToLowerCase(String string, {bool allWords = false});

String getLastToLowerCase(String string, {bool allWords = false});

String getLowerCamelCase(String string, {bool attached = false, String betweenWords = ''});

String getLowerSnakeCase(String string);

// Extension functions
print('Dart'.firstToLowerCase); // 'dart'
print('DART'.firstToLowerCase); // 'DARt'
print('LOWER CAMEL CASE'.toLowerCamelCase); // 'lower Camel Case'
print('lower underscore case'.toLowerSnakeCase); // 'lower_underscore_case'
Char
// Regular functions
String getFirstChar(String string);

String getLastChar(String string);

int getLastCharIndex(String string);

String getCharAt(String string, int index);

// Extension functions
print('dart'.firstChar); // returns 'd'
print('dart'.lastChar); // returns 't'
print('dart'.lastCharIndex); // returns 3
print('dart'.charAt(1)); // returns 'a'

return up

You might also like...

A flutter package from AsurRaa for widgets and utility functions to support mobile departments here.

A flutter package from AsurRaa for widgets and utility functions to support mobile departments here.

sura_flutter A flutter package from AsurRaa for custom widgets and utility functions. Migrate from 0.2.x to 0.3.x BREAKING CHANGE: remove FutureManage

Nov 15, 2022

SurrealDB client written in pure dart. auto reconnect, typed functions

SurrealDB Client For Dart & Flutter SurrealDB client for Dart and Flutter. Quick Start import 'package:surrealdb/surrealdb.dart'; void main(ListStri

Dec 18, 2022

Dart package to which makes data communication easy among different modules of your application.

Dart package to which makes data communication easy among different modules of your application.

LiveStream - Dart LiveStream is a data holder class which can observe change of data in real-time and emit values too. Here's emitter subscriber patte

Sep 28, 2022

Snooper android - Flutter platform package for Android which provides concrete implementations for various device info lookups

Snooper android - Flutter platform package for Android which provides concrete implementations for various device info lookups

Flutter platform package for Android which provides concrete implementations for

Jan 27, 2022

A Flutter package which provides 360 view of the images with rotation and gesture customisations.

 A Flutter package which provides 360 view of the images with rotation and gesture customisations.

imageview360 A Flutter package which provides 360 view of the images with rotation and gesture customisations. Supported Dart Versions Dart SDK versio

Dec 1, 2022

The EasyRichText widget provides an easy way to use RichText.

The EasyRichText widget provides an easy way to use RichText.

easy_rich_text The EasyRichText widget makes the RichText widget easy. You do not have to split the string manually. This widget use regular expressio

Jan 4, 2023

A Flutter slidable widget that provides an easy to use configuration. Highly customisable. Just as you want it!

A Flutter slidable widget that provides an easy to use configuration. Highly customisable. Just as you want it!

A Flutter slidable widget that provides an easy to use configuration. Highly customisable. Just as you want it!

Dec 8, 2022

This library provides a customizable Flutter widget that makes it easy to display text in the middle of a Divider.

This library provides a customizable Flutter widget that makes it easy to display text in the middle of a Divider.

1. About 1.1. Introduction 1.1.1. Install Library 1.1.2. Import It 1.1.3. Use TextDivider 1.2. Details 1.2.1. Customization Options 1.2.2. Horizontal

Feb 9, 2022
Owner
Talat El Beick
Software Developer who's loves technologies made by Google, he is a C style fan, his first language is Java!
Talat El Beick
Life-saving helpers for working with JavaScript libraries when compiling Dart/Flutter to Web.

dartified Life-saving helpers for working with JavaScript libraries when compiling Dart/Flutter to Web. Features The functions included in this librar

Hammed Oyedele 2 Aug 19, 2022
A new flutter package project which contains lots of beautiful alert dialog that will help you lot to create beautiful awesome alert box very quickly and easily.

A new flutter package project which contains lots of beautiful alert dialog that will help you lot to create beautiful awesome alert box very quickly and easily.

Karan Soni 8 Jan 8, 2022
Calculator provides simple and advanced mathematical functions in a beautifully designed app.

Hi there, I'm Behruz Hurramov Getting Started $ git clone https://github.com/ariscybertech/aris_calculator.git $ flutter packages get Run the applicat

Behruz Hurramov 3 Jul 7, 2022
Calculator provides simple and advanced mathematical functions in a beautifully designed app.

Adv Calculator See LICENSE A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get y

RAHUL SHARMA 3 Feb 21, 2022
Flutter library that provides useful functions for working with colors

Colors Stuff A library that provides useful functions for working with colors. T

Avinaba Dalal 0 Dec 27, 2021
Dart package responsible to provide the basic resources to Lambda Functions with Clean Dart

AWS Lambda Core This package is responsible to provide the basic resources to all services; Usage pubspec.yaml dependencies: aws_lambda_core: <laste

David Araujo 1 Dec 2, 2021
A small splashscreen used as intro for flutter applications easily with a lot of customizations ❤️🥳

Splash Screen A splashscreen package to be used for an intro for any flutter application easily with a lot of customization Currently Supported by awe

DPLYR 283 Dec 30, 2022
A package that exports functions for converting, formatting, and nicening of dates/times in Dart.

Instant A library for manipulating and formatting DateTimes in Dart. Dates and times have never been easier. | DateTime timezone manipulation | Easy f

Aditya Kishore 10 Jan 22, 2022
A package provides an easy way to add shimmer effect in Flutter project

flutter_shimmer_widget A package provides an easy way to add shimmer effect in Flutter project Getting Started Animation Example Project There is a ex

Le Anh Tuan 4 Jun 29, 2022