<itemvalue="Updates the value for the provided [key]. Returns the new value associated with the key. If the key is present, invokes [update] with the current value and stores the new value in the map. If the key is not present and [ifAbsent] is provided, calls [ifAbsent] and adds the key with the returned value to the map. If the key is not present, [ifAbsent] must be provided. ```dart final planetsFromSun = <int, String>{1: 'Mercury', 2: 'unknown', 3: 'Earth'}; Update value for known key value 2. planetsFromSun.update(2, (value) => 'Venus'); print(planetsFromSun); {1: Mercury, 2: Venus, 3: Earth} final largestPlanets = <int, String>{1: 'Jupiter', 2: 'Saturn', 3: 'Neptune'}; Key value 8 is missing from list, add it using [ifAbsent]. largestPlanets.update(8, (value) => 'New', ifAbsent: () => 'Mercury'); print(largestPlanets); {1: Jupiter, 2: Saturn, 3: Neptune, 8: Mercury} ```"/>
<itemvalue="is humanoid"/>
@ -60,14 +62,12 @@
<itemvalue="If a [resourceProvider] is given, it will be used to access the file system."/>
<itemvalue="If a [path] is provided, it will be used as the name of the file when reporting errors."/>
<itemvalue="Two or more string literals that are implicitly concatenated because of being adjacent (separated only by whitespace). For example ```dart 'Hello ' 'World' ``` While the grammar only allows adjacent strings where all of the strings are of the same kind (single line or multi-line), this class doesn't enforce that restriction. adjacentStrings ::= [StringLiteral] [StringLiteral]+"/>
<itemvalue="The parsed, unresolved compilation unit for the [content]."/>
<itemvalue="visit function declaration statement"/>