Results for “String”
Full-text search across Boring Doc explanations, official documentation pages, the Flutter API index and every indexed version change.
Concepts
- Platform integration and platform channels3.47.7platform
setMethodCallHandler answers with success, error or notImplemented. StandardMessageCodec serializes null, bool, int, double, String, typed byte/int/float lists, List and Map automatically; anything else must be flattened into
- Forms and validation3.47.7forms
submit, call formKey.currentState!.validate(): it runs every validator, shows the returned error strings under the fields, and returns true only when all of them returned null. Form
- Networking and JSON3.47.7data
null, otherwise FutureBuilder keeps showing the spinner. jsonDecode returns dynamic (a Map, List, String, num, bool or null). Cast it and convert to a model class with
Guides
- Writing custom platform-specific codedoc
Learn how to write custom platform-specific code in your app. This
- JSON and serializationdoc
Encoding and serialization are the same thing—turning a data structure into a string. Decoding and deserialization are the opposite process—turning a string into
- Performance best practicesdoc
How to ensure that your Flutter app is performant. Generally, Flutter applications
- Work with long listsdoc
internet or a database. For this example, generate a list of 10,000 Strings using the List.generate constructor. 2. Convert the data source into widgets To display
API reference
- StringPropertyclass
Property which encloses its string value in quotes. foundation.StringProperty StringProperty String Property class foundation
- StringCodecclass
MessageCodec with UTF-8 encoded String messages. services.StringCodec StringCodec String Codec class services
- StringProperty.newconstructor
Create a diagnostics property for strings. foundation.StringProperty.StringProperty.new StringProperty new String Property.new constructor foundation
- StringCodec.newconstructor
Creates a MessageCodec with UTF-8 encoded String messages. services.StringCodec.StringCodec.new StringCodec new String Codec.new constructor services
- AttributedStringclass
string that carries a list of StringAttributes. semantics.AttributedString AttributedString Attributed String class semantics
- RestorableStringclass
RestorableProperty that knows how to store and restore a String. widgets.RestorableString RestorableString Restorable String class widgets
- RestorableStringNclass
RestorableProperty that knows how to store and restore a String that is nullable. widgets.RestorableStringN RestorableStringN Restorable String N class widgets
- AttributedStringPropertyclass
DiagnosticsProperty for AttributedStrings, which shows a string when there are no attributes, and more details otherwise. semantics.AttributedStringProperty AttributedStringProperty Attributed String Property class semantics
- Key.newconstructor
Construct a ValueKey<String> with the given String. foundation.Key.Key.new Key new Key.new constructor foundation
- AttributedString.newconstructor
Creates a attributed string. semantics.AttributedString.AttributedString.new AttributedString new Attributed String.new constructor semantics
- ErrorDescription.newconstructor
lint enforces that this constructor can only be called with a string literal to match the limitations of the Dart Kernel transformer that optionally extracts out objects
- ErrorSummary.newconstructor
lint enforces that this constructor can only be called with a string literal to match the limitations of the Dart Kernel transformer that optionally extracts out objects
- ErrorHint.newconstructor
lint enforces that this constructor can only be called with a string literal to match the limitations of the Dart Kernel transformer that optionally extracts out objects
- LicenseParagraphclass
string that represents one paragraph in a LicenseEntry. foundation.LicenseParagraph LicenseParagraph License Paragraph class foundation
- DefaultMaterialLocalizationsclass
English strings for the material widgets. material.DefaultMaterialLocalizations DefaultMaterialLocalizations Default Material Localizations class material
- DefaultCupertinoLocalizationsclass
English strings for the Cupertino widgets. cupertino.DefaultCupertinoLocalizations DefaultCupertinoLocalizations Default Cupertino Localizations class cupertino
- AutofillHintsclass
collection of commonly used autofill hint strings on different platforms. services.AutofillHints AutofillHints Autofill Hints class services
- CachingAssetBundleclass
AssetBundle that permanently caches string and structured resources that have been fetched. services.CachingAssetBundle CachingAssetBundle Caching Asset Bundle class services
- DiagnosticableTreeclass
base class for providing string and DiagnosticsNode debug representations describing the properties and children of an object. foundation.DiagnosticableTree DiagnosticableTree Diagnosticable Tree class foundation
- widgets.AutocompleteOptionToStringtypedef
type of the RawAutocomplete callback that converts an option value to a string which can be displayed in the widget's options menu. widgets.AutocompleteOptionToString AutocompleteOptionToString Autocomplete Option
- LexicalFocusOrderclass
given to a FocusTraversalOrder widget to use a String to assign a lexical order to a widget subtree that is using a OrderedTraversalPolicy to define the order
- FlutterError.newconstructor
Create an error message from a string. foundation.FlutterError.FlutterError.new FlutterError new Flutter Error.new constructor foundation
- foundation.debugWordWrapfunction
Wraps the given string at the given width. foundation.debugWordWrap debugWordWrap debug Word Wrap function foundation
- LicenseParagraph.newconstructor
Creates a string for a license entry paragraph. foundation.LicenseParagraph.LicenseParagraph.new LicenseParagraph new License Paragraph.new constructor foundation
- Localizations.newconstructor
Create a widget from which localizations (like translated strings) can be obtained. widgets.Localizations.Localizations.new Localizations new Localizations.new constructor widgets
- widgets.debugDumpAppfunction
Print a string representation of the currently running app. widgets.debugDumpApp debugDumpApp debug Dump App function widgets
- DiagnosticsNode.messageconstructor
Diagnostics containing just a string message and not a concrete name or value. foundation.DiagnosticsNode.DiagnosticsNode.message DiagnosticsNode message Diagnostics Node.message constructor foundation
- foundation.DiagnosticableTreeMixinmixin
mixin that helps dump string and DiagnosticsNode representations of trees. foundation.DiagnosticableTreeMixin DiagnosticableTreeMixin Diagnosticable Tree Mixin mixin foundation
- OverlayPortalController.newconstructor
Creates an OverlayPortalController, optionally with a String identifier debugLabel. widgets.OverlayPortalController.OverlayPortalController.new OverlayPortalController new Overlay Portal Controller.new constructor widgets
Version changes
- Moved ReorderableListView's localized strings3.13.0breaking
ReorderableListView`'s localized strings were moved from material localizations to widgets localizations. These strings were deprecated in material localizations. The `MaterialLocalizations` strings for `reorderItemToStart`, `reorderItemToEnd
- Remove another `String.valueOf`3.47.0platform
Remove another `String.valueOf` (Android, by @AbdeMohlbi). String.valueOf
- Remove unnecessary `String.valueOf` in `SettingsChannel.java`3.41.0platform
Remove unnecessary `String.valueOf` in `SettingsChannel.java` (Android, by @AbdeMohlbi). String.valueOf SettingsChannel.java
- Remove unnecessary `String.valueOf` in `FlutterJNI.java`3.44.0platform
Remove unnecessary `String.valueOf` in `FlutterJNI.java` (Android, by @AbdeMohlbi). String.valueOf FlutterJNI.java
- Remove unnecessary `String.valueOf` in `KeyboardManager.java`3.38.0platform
Remove unnecessary `String.valueOf` in `KeyboardManager.java` (Android, by @AbdeMohlbi). String.valueOf KeyboardManager.java
- Remove unnecessary `String.valueOf` in `TextInputChannel.java`3.41.0platform
Remove unnecessary `String.valueOf` in `TextInputChannel.java` (Android, by @AbdeMohlbi). String.valueOf TextInputChannel.java
- Remove unnecessary `String.valueOf` in `ListenableEditingState.java`3.41.0platform
Remove unnecessary `String.valueOf` in `ListenableEditingState.java` (Android, by @AbdeMohlbi). String.valueOf ListenableEditingState.java
- Clean up avoid_type_to_string suppressions3.47.0tooling
Clean up avoid_type_to_string suppressions (Tooling, by @mvincentong
- Add `STRING_CATALOG_GENERATE_SYMBOLS = YES;`3.47.0tooling
STRING_CATALOG_GENERATE_SYMBOLS = YES;` (Tooling, by @AbdeMohlbi
- ignore avoid_type_to_string lint rule3.47.0improvement
ignore avoid_type_to_string lint rule (Framework, by @srawlins
- $FLUTTER_ROOT/version replaced by $FLUTTER_ROOT/bin/cache/flutter.version.json3.35.0breaking
api.flutter.dev` generation script: ```dart title="post_process_docs.dart" final File versionFile = File('version'); final String version = versionFile.readAsStringSync(); ``` Was updated in [172601][PR 172601] to: ```dart final File versionFile = File
- Pass XcodeBasedProject instead of String to functions in XcodeProjectInterpreter3.47.0platform
Pass XcodeBasedProject instead of String to functions in XcodeProjectInterpreter (iOS, by @vashworth). XcodeBasedProject XcodeProjectInterpreter
- Redesigned the Radio widget3.35.0breaking
Introduced the `RadioGroup` widget to centralize `groupValue` management and the `onChanged` callback
- [web_ui] Fix avoid_type_to_string lint violation3.44.0bugfix
avoid_type_to_string lint violation (Web, by @srawlins
- ignore avoid_type_to_string lint rule in flutter_tools3.47.0tooling
ignore avoid_type_to_string lint rule in flutter_tools (Tooling, by @srawlins
- Impeller: Convert GLProc name field and GLErrorToString to std::string_view3.38.0improvement
Impeller: Convert GLProc name field and GLErrorToString to std::string_view (Other changes, by @DEVSOG12
- [ Device Lab ] Fix wakefulness check to only match log entries with string values3.38.0bugfix
Device Lab ] Fix wakefulness check to only match log entries with string values (Other changes, by @bkonyi
- [A11y] Allow percentage strings like "50%" as `SemanticsValue` for `ProgressIndicator`3.44.0new-feature
A11y] Allow percentage strings like "50%" as `SemanticsValue` for `ProgressIndicator` (Material, by @hannah-hyj). SemanticsValue ProgressIndicator
- [web] Match the behavior of other platforms in Web Locale.toString if the country code is an empty string3.41.0platform
other platforms in Web Locale.toString if the country code is an empty string (Web, by @jason-simmons
- Ensure that the engine converts std::filesystem::path objects to UTF-8 strings on Windows3.41.0platform
Ensure that the engine converts std::filesystem::path objects to UTF-8 strings on Windows (Windows, by @jason-simmons
- Ensure that directory names are typed as strings in the CIPD package YAML file generated by merge_and_upload_debug_symbols.py3.47.0improvement
Ensure that directory names are typed as strings in the CIPD package YAML file generated by merge_and_upload_debug_symbols.py (Other changes, by @jason-simmons
- Require one data variant for ClipboardData constructor3.10.0breaking
provides `null` to the `text` argument must be migrated to provide an empty string `''`. The `ClipboardData constructor`'s `text` argument is no longer nullable. In preparation
- Deprecated RouteInformation.location3.13.0deprecated
dart final RouteInformation myRoute = RouteInformation(uri: Uri.parse('/myroute')); ``` Code before migration: ```dart final String myPath = myRoute.location; ``` Code after migration: ```dart final String myPath = myRoute.uri.path; ``` Code before
- Removal of describeEnum3.47.0removed
which was introduced in `Dart 2.14`. Historically, Flutter used `describeEnum` to return a `String` description of an enum value. This became redundant when the `name` getter