merge method

  1. @override
FastMediaLayoutBlocState merge(
  1. covariant FastMediaLayoutBlocState state
)
override

Creates a new TModel where each properties from this object has been merged with the matching properties from the other object.

For example:

var myModel3 = myModel1.merge(myModel2);

Implementation

@override
FastMediaLayoutBlocState merge(covariant FastMediaLayoutBlocState state) {
  return copyWith(
    mediaType: state.mediaType,
    isLoading: state.isLoading,
    isLoaded: state.isLoaded,
  );
}