[ 
https://issues.apache.org/jira/browse/THRIFT-5372?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17304045#comment-17304045
 ] 

Max commented on THRIFT-5372:
-----------------------------

Please check if [https://github.com/apache/thrift/pull/2251] is relevant, it 
has made Dart 2 compat changes, including null safety, quite recently.

> Thrift Dart generated code not working with dart 2.12.1
> -------------------------------------------------------
>
>                 Key: THRIFT-5372
>                 URL: https://issues.apache.org/jira/browse/THRIFT-5372
>             Project: Thrift
>          Issue Type: Bug
>          Components: Dart - Library
>         Environment: !Screenshot from 2021-03-18 07-16-27.png!
>            Reporter: Vladimir Vlach
>            Priority: Major
>         Attachments: Screenshot from 2021-03-18 07-16-27.png
>
>
> Generated dart code shows numerous errors when using with Dart 2.12.1 (in 
> flutter).
> Using tutorial.thrift and thrift generator 0.15.0
>  * Non-nullable instance field '_iprot' must be initialized. (Documentation)
>  * A value of type 'Object' can't be assigned to a variable of type 'int'. 
> (Documentation)
> Also for Flutter it's missing null-safety



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to