generated/arcane_shadcn/src/util
library
Functions
-
clearActiveTextInput()
→ void
-
-
degToRad(double deg)
→ double
-
-
gap(double gap, {double? crossGap})
→ Widget
-
-
getWordAtCaret(String text, int caret, [String separator = ' '])
→ WordInfo
-
-
invokeActionOnFocusedWidget(Intent intent)
→ (bool, Object?)
-
-
isMobile(TargetPlatform platform)
→ bool
-
-
join(Iterable<Widget> widgets, Widget separator)
→ Iterable<Widget>
-
-
optionallyResolveBorderRadius(BuildContext context, BorderRadiusGeometry? radius)
→ BorderRadius?
-
-
radToDeg(double rad)
→ double
-
-
replaceWordAtCaret(String text, int caret, String replacement, [String separator = ' '])
→ ReplacementInfo
-
-
styleValue<T>({T? widgetValue, T? themeValue, required T defaultValue})
→ T
-
A style helper function that returns the value from the widget, theme, or default value.
-
subtractByBorder(BorderRadius radius, double borderWidth)
→ BorderRadius
-
-
swapItemInLists<T>(List<List<T>> lists, T element, List<T> targetList, int targetIndex)
→ void
-
-
tweenValue<T>(T begin, T end, double t)
→ T
-
-
unlerpDouble(double value, double min, double max)
→ double
-
-
wrapDouble(double value, double min, double max)
→ double
-
Typedefs
-
BinaryOperator<T>
= T Function(T a, T b)
-
-
Consumer<T>
= void Function(T value)
-
-
ContextedCallback
= void Function(BuildContext context)
-
-
ContextedValueChanged<T>
= void Function(BuildContext context, T value)
-
-
Convert<F, T>
= T Function(F value)
-
-
NeverWidgetBuilder
= Widget Function([dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic, dynamic])
-
-
Predicate<T>
= bool Function(T value)
-
-
ReplacementInfo
= (int, String)
-
-
SearchPredicate<T>
= double Function(T value, String query)
-
-
Supplier<T>
= T Function()
-
-
UnaryOperator<T>
= T Function(T value)
-
-
WordInfo
= (int, String)
-