avocado_utils
library
Functions
as <T > (dynamic value )
→ T?
atMostOneIsTrue3 (bool a , bool b , bool c )
→ bool
backgroundEscape (Color color )
→ String
barHeight ([VisualDensity visualDensity = const VisualDensity() ])
→ double
buttonStyleFrom ({Color ? foregroundColor , Color ? backgroundColor , Color ? hoverColor , Color ? pressColor , Color ? selectionColor , Color ? focusColor , Color ? shadowColor , double ? elevation , TextStyle ? textStyle , EdgeInsetsGeometry ? padding , Size ? minimumSize , Size ? fixedSize , Size ? maximumSize , BorderSide ? side , OutlinedBorder ? shape , MouseCursor ? enabledMouseCursor , MouseCursor ? disabledMouseCursor , VisualDensity ? visualDensity , MaterialTapTargetSize ? tapTargetSize , Duration ? animationDuration , bool ? enableFeedback , AlignmentGeometry ? alignment , InteractiveInkFeatureFactory ? splashFactory })
→ ButtonStyle
ceilDevicePixelsOfLogicalPixelsSize (double size , {required double devicePixelRatio })
→ double
clamp <T extends num > (T num , T? lowerLimit , T? upperLimit )
→ T
clampDirectionalInsets (EdgeInsetsDirectional insets , [EdgeInsetsDirectional min = EdgeInsetsDirectional.zero , EdgeInsetsDirectional max = infiniteDirectionalInsets ])
→ EdgeInsetsDirectional
closestEven (double given )
→ double
closestOdd (double given )
→ double
copyDirectionalInsets (EdgeInsetsDirectional insets , {double ? start , double ? top , double ? end , double ? bottom })
→ EdgeInsetsDirectional
copyRect (Rect rect , {double ? left , double ? top , double ? right , double ? bottom })
→ Rect
debugCheckHasActiveMouseTracker (BuildContext context )
→ bool
deviceIsMobile (BuildContext context )
→ bool
elementToString (BuildContext element )
→ String
enforceMaxSize (Size size , Size constraints )
→ Size
equalsAnyOf <T > (T value , List <T > list )
→ bool
escForColor (LogColor color )
→ String
findDescendantRenderObjectOfType <T > (RenderObject renderObject )
→ T?
foregroundEscape (Color color )
→ String
getCurrentRoute (BuildContext context )
→ Route
getHorzIntrinsicSize (RenderBox renderBox )
→ Size
getVertIntrinsicSize (RenderBox renderBox )
→ Size
globalRectToLocal (Rect globalRect , {required RenderBox localTo })
→ Rect
hasAncestors (Object object , List <String > strings )
→ bool
hasBit (int bitfield , int bit )
→ bool
indentString (int indent )
→ String
isCharacter (String string )
→ bool
isDigit (String character )
→ bool
isLetter (String character )
→ bool
isLowercaseLetter (String character )
→ bool
isUppercaseLetter (String character )
→ bool
lastIndexOf <T > (List <T > list )
→ int
layoutChild (RenderBox child , BoxConstraints constraints )
→ Size
length (TextRange range )
→ int
lerpColor (Color a , Color b , double t )
→ Color
lerpDouble (double ? a , double ? b , double t )
→ double ?
lerpEdgeInsetsGeometry (EdgeInsetsGeometry ? a , EdgeInsetsGeometry ? b , double t )
→ EdgeInsetsGeometry ?
lerpIfNotNulls <T > (T? a , T? b , double t , T? lerp (T , T , double ) )
→ T?
lerpProperties <T > (MaterialStateProperty <T? > ? a , MaterialStateProperty <T? > ? b , double t , T? lerp (T? , T? , double ) )
→ MaterialStateProperty <T? > ?
lerpSize (Size ? a , Size ? b , double t )
→ Size ?
lerpVisualDensity (VisualDensity a , VisualDensity b , double t )
→ VisualDensity
listTileHeight ([VisualDensity visualDensity = const VisualDensity() ])
→ double
makeCollapsedRect (Offset offset )
→ Rect
makeRect ({Offset offset = Offset.zero , required Size size })
→ Rect
makeResolver <AggregateT > (AggregateT? first , AggregateT? second , [AggregateT? third ])
→ ResolveProperty <AggregateT >
makeResolver4 <AggregateT > (AggregateT? first , AggregateT? second , AggregateT? third , AggregateT fourth )
→ ResolveProperty <AggregateT >
makeShortcutLabel (ShortcutActivator activator )
→ String
mapToList <K , V , T > (Map <K , V > map , T f (K key , V value ) )
→ List <T >
mergeSliderStyles (SliderThemeData ? first , SliderThemeData ? second )
→ SliderThemeData ?
offsetToString (Offset offset , {int fractionDigits = 3 })
→ String
onlyOneIsTrue3 (bool a , bool b , bool c )
→ bool
paintBounds (RenderBox renderBox , [RenderObject ? ancestor ])
→ Rect
pickGreater <T extends num > (T? first , T? second )
→ T?
pickLess <T extends num > (T? first , T? second )
→ T?
popCurrentRouteOfTypeIfAny <T extends Route > (BuildContext context )
→ void
prefixedToMatchDigitCount (int num , int digitCount )
→ String
prefixToMatchDigitCount (int num , int digitCount )
→ String
printAction (String string )
→ void
printElement (BuildContext element , {int indent = 0 })
→ void
printLogicalAndDevicePixels (double logicalX , [double ? logicalY , String ? string ])
→ void
printRenderObjectAncestorChain (RenderObject renderObject )
→ void
printStackTrace ()
→ void
printStackTraceIfType (Object object , String type )
→ void
printState (State <StatefulWidget > state , {int indent = 0 })
→ void
rectFromPoints (Offset leftTop , Offset rightBottom )
→ Rect
rectToString (dynamic rect , {int fractionDigits = 1 })
→ String
renderObjectAncestorChain (RenderObject renderObject , {String separator = ' ← ' })
→ String
renderObjectWidgetAncestorChain (RenderObject renderObject , {String separator = ' ← ' , bool shortDesc = true })
→ String
resolveButtonRichStateProperty <T > (MaterialStateProperty <T? > ? first , MaterialStateProperty <T? > ? second , MaterialStateProperty <T? > ? third )
→ MaterialStateProperty <T? > ?
resolveButtonStyle (ButtonStyle ? first , ButtonStyle ? second , ButtonStyle third )
→ ButtonStyle
resolveDividerThemeData (DividerThemeData ? first , DividerThemeData ? second , DividerThemeData ? third )
→ DividerThemeData
resolveExtendedButtonStyle (ExtendedButtonStyle ? first , ExtendedButtonStyle ? second , ExtendedButtonStyle third )
→ ExtendedButtonStyle
resolveIconThemeData (IconThemeData ? first , IconThemeData ? second , IconThemeData ? third )
→ IconThemeData
roundDevicePixelsOfLogicalPixelsOffset (Offset offset , {double ? devicePixelRatio })
→ Offset
roundDevicePixelsOfLogicalPixelsSize (double size , {double ? devicePixelRatio , double minDevicePixels = 0 })
→ double
roundDevicePixelsOfLogicalPixelsSizeForContext (double size , {BuildContext ? context , double minDevicePixels = 0 })
→ double
secondOverlayOpacityFromFirstAndAddend (double firstOverlayOpacity , double addend )
→ double
secondOverlayOpacityFromFirstAndResultingOpacityMultiplier (double firstOverlayOpacity , double resultingOpacityMultiplier )
→ double
shouldOptimizeComponentsSizeForTouch (BuildContext context )
→ bool
stateToString (State <StatefulWidget > state )
→ String
stringFromChar (String char , [int length = 0 ])
→ String
subtractOverlappedPaddingIfAny (EdgeInsetsDirectional padding , Widget child , BuildContext context )
→ EdgeInsetsDirectional
themeFromColorScheme (ColorScheme scheme )
→ ThemeData
toDevicePixels (double logicalPixels , [BuildContext ? context ])
→ double
toDevicePixelsForRatio (double logicalPixels , {double ? devicePixelRatio })
→ double
toLogicalPixels (double devicePixels , [BuildContext ? context ])
→ double
toLogicalPixelsForRatio (double logicalPixels , {double ? devicePixelRatio })
→ double
visitRenderObjectAncestors (RenderObject renderObject , void visitor (RenderObject ) )
→ void
visitRenderObjectDescendants (RenderObject renderObject , bool visitor (RenderObject child ) )
→ bool
widgetAncestorChainOf (Object object )
→ String