Skip to content

Instantly share code, notes, and snippets.

@VB10
Created December 6, 2020 21:02
Show Gist options
  • Save VB10/271101e879a2db97bd047499146cd3db to your computer and use it in GitHub Desktop.
Save VB10/271101e879a2db97bd047499146cd3db to your computer and use it in GitHub Desktop.
abstract class LineState extends Equatable {
final GoogleMapController controller;
final int currentIndex;
LineState(this.controller, this.currentIndex);
}
class MapsMarkerChange extends LineState {
MapsMarkerChange(GoogleMapController controller, int currentIndex)
: super(controller, currentIndex);
@override
List<Object> get props => [currentIndex];
}
class GoogleMapsStateMarkers extends LineState {
final List<Marker> marrkers;
GoogleMapsStateMarkers(
GoogleMapController controller, int currentIndex, this.marrkers)
: super(controller, currentIndex);
@override
List<Object> get props => [controller, currentIndex];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment