summaryrefslogtreecommitdiff
path: root/dart
diff options
context:
space:
mode:
authorIvan Dlugos <6349682+vaind@users.noreply.github.com>2021-07-26 18:54:13 +0200
committerGitHub <noreply@github.com>2021-07-26 09:54:13 -0700
commitac23482022b4c1d585773ab5e02a3e13e0988509 (patch)
treef019d34048df6298b7112c583e60c6e6ecc99648 /dart
parent8be8a0a713ebc8a12a792f63057916efc89e5fc6 (diff)
downloadflatbuffers-ac23482022b4c1d585773ab5e02a3e13e0988509.tar.gz
flatbuffers-ac23482022b4c1d585773ab5e02a3e13e0988509.tar.bz2
flatbuffers-ac23482022b4c1d585773ab5e02a3e13e0988509.zip
Dart - fixup writeString() return type after previous merges (#6753)
Diffstat (limited to 'dart')
-rw-r--r--dart/lib/flat_buffers.dart4
1 files changed, 2 insertions, 2 deletions
diff --git a/dart/lib/flat_buffers.dart b/dart/lib/flat_buffers.dart
index 83866b0b..e136c12d 100644
--- a/dart/lib/flat_buffers.dart
+++ b/dart/lib/flat_buffers.dart
@@ -668,7 +668,7 @@ class Builder {
return result;
}
- /// Write the given string [value] and return its offset
+ /// Write the given string [value] and return its offset.
///
/// Dart strings are UTF-16 but must be stored as UTF-8 in FlatBuffers.
/// If the given string consists only of ASCII characters, you can indicate
@@ -676,7 +676,7 @@ class Builder {
/// copy the ASCII string directly to the output buffer and if that fails
/// (because there are no-ASCII characters in the string) it falls back and to
/// the default UTF-16 -> UTF-8 conversion (with slight performance penalty).
- int? writeString(String value, {bool asciiOptimization = false}) {
+ int writeString(String value, {bool asciiOptimization = false}) {
_ensureNoVTable();
if (_strings != null) {
return _strings!