StageBloc constructor

StageBloc(
  1. {@required Size stageSize,
  2. @required StageTheme theme}
)

Implementation

StageBloc({@required this.stageSize, @required this.theme}) : super() {
  stageBounds = this.state.bounds;

  $stageTransformState = PublishSubject<Matrix4>();

  /// save it, because we want to provide this value for rebuilt items (Edge, WrapperBox)
  $stageTransformState.listen(
      (Matrix4 data) => this.state.stageScale = data.getMaxScaleOnAxis());
}