Fidev-io / framy

A convenient code generator for app styleguide, gallery, wireframes and/or storyboard.
https://framy.dev
GNU Lesser General Public License v3.0
148 stars 16 forks source link

Nullable types #164

Open Norbert515 opened 3 years ago

Norbert515 commented 3 years ago
class FramyProfitIndicatorBoxCustomPage extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return FramyCustomPage(
      key: Key('Framy_ProfitIndicatorBox_Page'),
      dependencies: [
        FramyDependencyModel<Key*>('key', 'Key*', null),
FramyDependencyModel<double*>('profit', 'double*', null),

      ],
      builder: (DependencyValueGetter valueGetter) {
        return ProfitIndicatorBox(
  key: valueGetter('key'),
profit: valueGetter('profit'),

  );
      },
    );
  }
}

DartType ->

  /// If [withNullability] is `true`, then [NullabilitySuffix.question] and
  /// [NullabilitySuffix.star] will be be represented as `?` and `*`.
  /// [NullabilitySuffix.none] does not have any explicit presentation.
  ///
  /// If [withNullability] is `false`, nullability suffixes will not be
  /// included into the presentation.

My project is not null safe (wasn't able to fix by changing that)