flutter_build_mode

Last updated:

0 purchases

flutter_build_mode Image
flutter_build_mode Images
Add to Cart

Description:

flutter build mode

flutter_build_mode #
A package that extends the use of the 3 build modes, release, profile, and debug, for Flutter apps!
Usage #
import 'package:flutter_build_mode/flutter_build_mode.dart';

// return true if build mode is Release mode.
BuildMode.isRease;

// return true if build mode is Profile mode.
BuildMode.isProfile;

// return true if build mode is Debug mode.
BuildMode.isDebug;

// return the result of a callback that matches the runtime build mode.
BuildMode.when(
release: () => 'release mode!',
profile: () => 'profile mode!',
debug: () => 'debug mode!',
);
copied to clipboard
Note #
If you simply want to get the build mode, we recommend using an API such as kReleaseMode in the foundation package.

kReleaseMode
kProfileMode
kDebugMode

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.