generated/arcane_shadcn/src/util library

Mixins

CachedValue

Constants

kDefaultDuration → const Duration

Functions

clearActiveTextInput() → void
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?
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

ContextedCallback = void Function(BuildContext context)
ContextedValueChanged<T> = void Function(BuildContext context, T 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)
WordInfo = (int, String)