Result constructor

Result(
  1. bool success,
  2. String msg
)

Creates a result with the given success status and msg.

Implementation

Result(this.success, this.msg);