simple_auth icon indicating copy to clipboard operation
simple_auth copied to clipboard

Error in new simple_auth 2.0.10

Open MathiasTP opened this issue 3 years ago • 2 comments

Hi Clancey, thanks for updating. If i use the new 2.0.10 packages, i get this error on runtime: ../../flutter/.pub-cache/hosted/pub.dartlang.org/simple_auth_flutter-2.0.10/lib/simple_auth_flutter.dart:31:34: Error: A value of type 'String?' can't be assigned to a variable of type 'String' because 'String?' is nullable and 'String' isn't. authenticators[authenticator.identifier] = authenticator;

MathiasTP avatar Jun 08 '21 06:06 MathiasTP

Seems to be an easy fix just the change the type of String to String?

MathiasTP avatar Jun 08 '21 06:06 MathiasTP

Fixed it locally by added ! after .identifier..

MathiasTP avatar Jun 08 '21 07:06 MathiasTP