utils library

Classes

AbstractRecipe<T extends Equatable>
Inherited settings for squishy widgets. Use this to override the default squishy settings. Callers may implement this interface to expose their own recipes through the context.
VectorUtils
A Vector utility class.

Functions

maybeRecipeOf<T extends Equatable>({required BuildContext context, required bool listen}) → T?
Returns the recipe of type T from the context, or null if no recipe was found.
recipeOf<T extends Equatable>({required BuildContext context, required T fallbackData, required bool listen}) → T
Returns the recipe of type T from the context, or fallbackData if no recipe was found.