Skip to content

[Dart] Support for optional scalar types #8773

@arieroos

Description

@arieroos

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    dartpr-requestedA Pull Request is requested to move the issue forward.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions