google / google/flatbuffers

[Dart] Support for optional scalar types

Open
#8,773 6 comments 0 reactions 0 assignees View on GitHub
dart pr-requested
Dominant language
C++
Stars
26.5k
Forks
3.7k
PR merge metrics
No merged PRs in 30d

Description

It seems that optional scalar types are not supported for Dart

```
❯ ./flatc --dart --gen-object-api -o lib flatbuffer/*

error:
/home/arie/Workspace/eab-solutions/Farmcon/liblink/flatbuffer/animals.fbs:12: 35: error: Optional scalars are not yet supported in at least one of the specified programming languages.
```

I couldn't find any reference to this in the documentation or in existing issues.

Are there any plans to support them in the future?

P.S. I am running on the latest flatc version:
```
❯ ./flatc --version
flatc version 25.9.23
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.