Initialization of Layer's parametrs should be called before calling (act()) the Layer
@override void init([dynamic parametr]) {}