0

I have updated my SDK to 2.10.0, I have resolved all new conflics.(example: "required" instead of "@required") And after that when I wanted run my tests I had several errors with this. The compiler think "required" is a data type and not just the new version of "@required".

how to make the compiler understand that "required" is "@required" and not a data type ?

Kol2gaR
  • 202
  • 2
  • 13
  • One quick thing to keep in mind is that. Before null safety, it was `@required` ,after null safety is `required` – Philipos D. Aug 23 '22 at 13:50

1 Answers1

-1

You need to import either:

  package:flutter/cupertino.dart'
  package:flutter/material.dart'
  package:flutter/foundation.dart'
  package:flutter/widgets.dart'
Javad Dehban
  • 1,282
  • 3
  • 11
  • 24