extensions/index library

Extensions

FitBoolExtension on bool
Extension of the bool type.
FitDoubleExtension on double
Extension of the double type.
FitIntExtension on int
Extension of the int type.
FitListExtension on List<T>
Extension of the List<Modelable> type. Encapsulates the data inside model->data->"data".
FitMapExtension on Map<String, dynamic>
Extension on the Map<String, dynamic> type.
FitModelableExtension on List<Modelable>
Extension of the List<Modelable> type.
FitNumExtension on num
Extension of the num type.
FitStringExtension on String
Extension of the String class.

Functions

boolFromModel(Model model) bool
Creates a bool from a Model. If unsucessful, will return false.
doubleFromModel(Model model) double
Creates a double from a Model. If unsucessful, will return -1.
intFromModel(Model model) int
Creates an int from a Model. If unsucessful, will return -1.
numFromModel(Model model) num
Creates a num from a Model. If unsucessful, will return -1.
stringFromModel(Model model) String
Creates a String from a Model. If unsucessful, will return an empty String.