paywalls/flutter_flow/flutter_flow_util library

Classes

AppStateNotifier
Bidi
This provides utility methods for working with bidirectional text. All of the methods are static, and are organized into a class primarily to group them together for documentation and discoverability.
BidiFormatter
Bidi stands for Bi-directional text. According to Wikipedia: Bi-directional text is text containing text in both text directionalities, both right-to-left (RTL) and left-to-right (LTR). It generally involves text containing different types of alphabets, but may also refer to boustrophedon, which is changing text directionality in each row.
DateFormat
DateFormat is for formatting and parsing dates in a locale-sensitive manner.
FFLocalFile
FFParameters
FFPlace
Intl
The Intl class provides a common entry point for internationalization related tasks. An Intl instance can be created for a particular locale and used to create a date format via anIntl.date(). Static methods on this class are also used in message formatting.
LatLng
MicroMoney
Used primarily for currency formatting, this number-like class stores millionths of a currency unit, typically as an Int64.
NumberFormat
Provides the ability to format a number in a locale-specific way.
TextDirection
Represents directionality of text.
TransitionInfo
Uint8List
A fixed-length list of 8-bit unsigned integers.

Properties

getCurrentTimestamp DateTime
no setter
isAndroid bool
no setter
isiOS bool
no setter
isWeb bool
no setter

Functions

colorFromCssString(String color, {Color? defaultColor}) Color
dateTimeFormat(String format, DateTime? dateTime, {String? locale}) String
dateTimeRangeFromString(String dateTimeRangeStr) DateTimeRange?
END SERIALIZATION HELPERS DESERIALIZATION HELPERS
dateTimeRangeToString(DateTimeRange dateTimeRange) String
SERIALIZATION HELPERS
deserializeParam<T>(String? param, ParamType paramType, bool isList) → dynamic
formatNumber(num? value, {required FormatType formatType, DecimalType? decimalType, String? currency, bool toLowerCase = false, String? format, String? locale}) String
getFontWeight(String fontWeight) FontWeight
getTextAlign(String align) TextAlign
getTextDecoration(String textDecoration) TextDecoration
getTextWithTransform(String? text, String defaultValue, String? textTransform) String
getWidgetBoundingBox(BuildContext context) Rect?
isMobileWidth(BuildContext context) bool
jsonDecode(String source, {Object? reviver(Object? key, Object? value)?}) → dynamic
Parses the string and returns the resulting Json object.
jsonEncode(Object? object, {Object? toEncodable(Object? nonEncodable)?}) String
Converts object to a JSON string.
latLngFromString(String latLngStr) LatLng?
launchURL(String url) Future
localFileFromString(String localFileStr) FFLocalFile
localFileToString(FFLocalFile localFile) String
max<T extends num>(T a, T b) → T
Returns the larger of two numbers.
min<T extends num>(T a, T b) → T
Returns the lesser of two numbers.
placeFromString(String placeStr) FFPlace
placeToString(FFPlace place) String
responsiveVisibility({required BuildContext context, bool phone = true, bool tablet = true, bool tabletLandscape = true, bool desktop = true}) bool
serializeParam(dynamic param, ParamType paramType, [bool isList = false]) String?
showSnackbar(BuildContext context, String message, {bool loading = false, int duration = 4}) → void
toBeginningOfSentenceCase(String? input, [String? locale]) String?
Convert a string to beginning of sentence case, in a way appropriate to the locale.
valueOrDefault<T>(T? value, T defaultValue) → T