fromStatements static method
DcfValuation?
fromStatements(
- FinancialStatements statements, {
- double? growthRate,
- double terminalGrowthRate = 0.025,
- double discountRate = 0.10,
- int projectionYears = 10,
Create DCF valuation from FinancialStatements.
Implementation
static DcfValuation? fromStatements(
FinancialStatements statements, {
double? growthRate,
double terminalGrowthRate = 0.025,
double discountRate = 0.10,
int projectionYears = 10,
}) {
final fcf = statements.cashFlowStatement.freeCashFlow;
final shares = statements.sharesOutstanding;
if (fcf == null || shares == null || fcf <= 0) return null;
return DcfValuation(
freeCashFlow: fcf,
sharesOutstanding: shares,
growthRate: growthRate ?? 0.10,
terminalGrowthRate: terminalGrowthRate,
discountRate: discountRate,
projectionYears: projectionYears,
);
}