Skip to content

FieldAssist/fa_dart_core

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fa_dart_core codecov

Official FA Dart core package.

Getting Started

Add following code in pubspec.yaml file in dependencies:

  fa_dart_core:
    git:
      url: https://github.com/FieldAssist/fa_dart_core.git
      ref: main

Logger

To use add following line as top level variable anywhere in your project

final AppLog logger = AppLogImpl();

Debug

logger.d("debug value: $token");

Exception

logger.e(e,stacktrace); // Use StackTrace.current in case no stacktrace available

Info

logger.i("Api response: xyz");

DateTimeUtils

Provides basic formatting for DateTime. usage:

DateTime time = DateTime.Now();
String formattedDate = DateTimeUtils.formatDateTime(
    dateTime: time,
    outputFormat: DateTimeFormat.FORMAT_1_dd_MMMM_yyyy,
);

DateTime dt = DateTimeUtils.parseDateTime(
    dateTime: formattedDate,
    inputFormat: DateTimeFormat.FORMAT_1_dd_MMMM_yyyy,
);

About

Official FA Dart core package.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages