You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: pop.go
    path of file: ./repos/go-flutter
    
    the code of the file until where you have to start completion: package flutter

import (
	"github.com/pkg/errors"
)

// popBehavior defines how an application should handle the navigation pop
// event from the flutter side.
type popBehavior int

const (
	// PopBehaviorNone means the system navigation pop event is ignored.
	PopBehaviorNone popBehavior = iota
	// PopBehaviorHide hides the application window on a 
    
func (p *platformPlugin) handleSystemNavigatorPop(arguments interface{}) (reply interface{}, err error) {
	switch p.popBehavior {
	case PopBehaviorNone:
		return nil, nil
	case PopBehaviorHide:
		p.window.Hide()
		return nil, nil
	case PopBehaviorIconify:
		p.window.Iconify()
		return nil, nil
	case PopBehaviorClose:
		p.window.SetShouldClose(true)
		return nil, nil
	default:
		return nil, errors.Errorf("unknown pop behavior %T not implemented by platform handler", p.popBehavior)
	}
}