Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoogleMapController Initialization #176

Open
fredwilliam opened this issue Feb 14, 2022 · 0 comments
Open

GoogleMapController Initialization #176

fredwilliam opened this issue Feb 14, 2022 · 0 comments

Comments

@fredwilliam
Copy link

fredwilliam commented Feb 14, 2022

Hi,

I am getting error on initializing GoogleMapController _mapController; there is Error: Field '_mapController' should be initialized because its type 'GoogleMapController' doesn't allow null

when i use late GoogleMapController _mapController; there is error LateInitializationError: Field '_mapController' has not been initialized.

When i use GoogleMapController? _mapController; there is Error: Method 'animateCamera' cannot be called on 'GoogleMapController?' because it is potentially null.

What is the correct way to initialise?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant