Skip to content

[google_sign_in] GoogleSignInAccount implement the equals operator wrong #101895

@long1eu

Description

@long1eu

GoogleSignInAccount class uses dynamic instead of Object in it implementation of equals. This makes it so you can't mock the class using mocktail.

class MockGoogleSignInAccount extends Mock implements GoogleSignInAccount {}

'Mock.==' ('bool Function(Object)') isn't a valid concrete implementation of 'GoogleSignInAccount.==' ('bool Function(dynamic)').

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectfound in release: 2.10Found to occur in 2.10found in release: 2.13Found to occur in 2.13good first issueRelatively approachable for first-time contributorshas reproducible stepsThe issue has been confirmed reproducible and is ready to work onp: google_sign_inThe Google Sign-In pluginpackageflutter/packages repository. See also p: labels.r: fixedIssue is closed as already fixed in a newer version

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions